Searched refs:from_u8 (Results 1 – 10 of 10) sorted by relevance
25 fn from_u8(val: u8) -> Option<Self> { in from_u8() method99 24..=31 => match X87FpuInternalRegId::from_u8(id as u8 - 24) { in from_raw_id()147 32..=39 => match X87FpuInternalRegId::from_u8(id as u8 - 32) { in from_raw_id()
21 let radix = I::from_u8(16).ok_or(InvalidOutput)?; in decode_hex()30 let x = I::from_u8(ascii2byte(digit).ok_or(NotAscii)?).ok_or(InvalidOutput)?; in decode_hex()
11 pub fn from_u8(system: u8) -> System { in from_u8() method294 assert_eq!(System::from_u8(0), System::Dos); in system()295 assert_eq!(System::from_u8(3), System::Unix); in system()
564 system: System::from_u8((version_made_by >> 8) as u8), in central_header_to_zip_file()907 system: System::from_u8((version_made_by >> 8) as u8), in read_zipfile_from_stream()
328 result = (result << 8) | T::Widest::from_u8(byte); in int_in_range_impl()610 fn from_u8(b: u8) -> Self; in from_u8() method641 fn from_u8(b: u8) -> Self {
467 fn from_u8(n: u8) -> Option<Self> { in from_u8() method559 fn from_u8(n: u8) -> Option<$T> {663 fn from_u8(u8);
294 fn from_u8(n: u8) -> Option<Self> { in from_primitive()295 <#inner_ty as #import::FromPrimitive>::from_u8(n).map(#name) in from_primitive()
350 assert_eq_from!(from_u8 from_u16 from_u32 from_u64 from_usize); in newtype_from_primitive()
696 fn from_u8(n: u8) -> Option<Self> { in from_u8() method
84 fn from_u8(n: u8) -> Option<Self> { in from_u8() method