Home
last modified time | relevance | path

Searched refs:to_u16 (Results 1 – 11 of 11) sorted by relevance

/external/rust/crates/zip/src/
Dcompression.rs98 pub fn to_u16(self) -> u16 { in to_u16() method
132 let to = from.to_u16() as u32; in from_eq_to()
155 let to = method.to_u16(); in to_eq_from()
159 let back = from.to_u16(); in to_eq_from()
Dwrite.rs633 writer.write_u16::<LittleEndian>(file.compression_method.to_u16())?; in write_local_file_header()
685 writer.write_u16::<LittleEndian>(file.compression_method.to_u16())?; in write_central_directory_header()
/external/rust/crates/regex-automata/tests/
Dsuite.rs131 re.forward().to_u16().unwrap(), in u16()
132 re.reverse().to_u16().unwrap(), in u16()
176 let fwd = re.forward().to_sparse().unwrap().to_u16().unwrap(); in sparse_u16()
177 let rev = re.reverse().to_sparse().unwrap().to_u16().unwrap(); in sparse_u16()
/external/rust/crates/num-traits/src/
Dcast.rs83 fn to_u16(&self) -> Option<u16> { in to_u16() method
84 self.to_u64().as_ref().and_then(ToPrimitive::to_u16) in to_u16()
183 fn to_u16 -> u16;
256 fn to_u16 -> u16;
383 fn to_u16 -> u16;
601 impl_from_primitive!(u16, to_u16);
631 fn to_u16 -> u16;
722 impl_num_cast!(u16, to_u16);
/external/rust/crates/num-traits/tests/
Dcast.rs44 assert_eq!(i.to_u16(), w.to_u16()); in wrapping_to_primitive()
388 assert_eq_to!(to_u8 to_u16 to_u32 to_u64 to_usize); in newtype_to_primitive()
/external/rust/crates/num-derive/src/
Dlib.rs472 fn to_u16(&self) -> Option<u16> { in to_primitive()
473 <#inner_ty as #import::ToPrimitive>::to_u16(&self.0) in to_primitive()
/external/rust/crates/half/src/
Dbfloat.rs669 fn to_u16(&self) -> Option<u16> { in to_u16() method
670 Self::to_f32(*self).to_u16() in to_u16()
Dbinary16.rs57 fn to_u16(&self) -> Option<u16> { in to_u16() method
58 Self::to_f32(*self).to_u16() in to_u16()
/external/rust/crates/regex-automata/src/
Dsparse.rs270 pub fn to_u16(&self) -> Result<SparseDFA<Vec<u8>, u16>> { in to_u16() method
Ddense.rs374 pub fn to_u16(&self) -> Result<DenseDFA<Vec<u16>, u16>> { in to_u16() method
/external/flatbuffers/tests/rust_usage_test/tests/
Dintegration_test.rs1868 fn to_u16() { in to_u16() function