Searched refs:to_u32 (Results 1 – 9 of 9) sorted by relevance
91 pub fn to_u32(&self) -> u32 { in to_u32() method92 ToPrimitive::to_u32(self).expect("Unsupported algorithm for to_u32.") in to_u32()
192 w.write_u32::<LittleEndian>(self.version.to_u32().unwrap())?; in write_into()238 w.write_u32::<LittleEndian>(self.hash_algorithm.to_u32().unwrap())?; in write_into()280 w.write_u32::<LittleEndian>(self.signature_algorithm_id.to_u32())?; in write_into()
83 item.to_u32().unwrap_or(0) in from()185 item.to_u32().unwrap_or(0) in from()281 self.to_u32().unwrap_or_default() in into()348 self.to_u32().unwrap_or(0) in into()402 self.to_u32().unwrap_or(0) in into()699 data.copy_from_slice(&BtDeviceType::to_u32(tod).unwrap_or_default().to_ne_bytes()); in get_data_ptr()717 data.copy_from_slice(&BtScanMode::to_u32(sm).unwrap_or_default().to_ne_bytes()); in get_data_ptr()752 data.copy_from_slice(&BtIoCap::to_u32(iocap).unwrap_or_default().to_ne_bytes()); in get_data_ptr()755 data.copy_from_slice(&BtIoCap::to_u32(iocap).unwrap_or_default().to_ne_bytes()); in get_data_ptr()775 &BtAddrType::to_u32(addr_type).unwrap_or_default().to_ne_bytes(), in get_data_ptr()
80 item.to_u32().unwrap() in from()94 item.to_u32().unwrap() in from()
34 item.to_u32().unwrap_or(0) in from()
332 type_: hdr.sdp_type.to_u32().unwrap(), in convert_header()
497 write!(f, "{}", self.to_u32().unwrap_or(0)) in fmt()519 self.to_u32().unwrap_or(0) in into()
278 return Ok(data.to_u32().unwrap());
1911 status.to_u32().unwrap(), in bond_state()1913 bond_state.to_u32().unwrap(), in bond_state()