Home
last modified time | relevance | path

Searched refs:from_u8 (Results 1 – 10 of 10) sorted by relevance

/external/rust/crates/gdbstub/src/arch/x86/reg/
Did.rs25 fn from_u8(val: u8) -> Option<Self> { in from_u8() method
99 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()
/external/rust/crates/gdbstub/src/protocol/common/
Dhex.rs21 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()
/external/rust/crates/zip/src/
Dtypes.rs11 pub fn from_u8(system: u8) -> System { in from_u8() method
294 assert_eq!(System::from_u8(0), System::Dos); in system()
295 assert_eq!(System::from_u8(3), System::Unix); in system()
Dread.rs564 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()
/external/rust/crates/arbitrary/src/
Dunstructured.rs328 result = (result << 8) | T::Widest::from_u8(byte); in int_in_range_impl()
610 fn from_u8(b: u8) -> Self; in from_u8() method
641 fn from_u8(b: u8) -> Self {
/external/rust/crates/num-traits/src/
Dcast.rs467 fn from_u8(n: u8) -> Option<Self> { in from_u8() method
559 fn from_u8(n: u8) -> Option<$T> {
663 fn from_u8(u8);
/external/rust/crates/num-derive/src/
Dlib.rs294 fn from_u8(n: u8) -> Option<Self> { in from_primitive()
295 <#inner_ty as #import::FromPrimitive>::from_u8(n).map(#name) in from_primitive()
/external/rust/crates/num-traits/tests/
Dcast.rs350 assert_eq_from!(from_u8 from_u16 from_u32 from_u64 from_usize); in newtype_from_primitive()
/external/rust/crates/half/src/
Dbfloat.rs696 fn from_u8(n: u8) -> Option<Self> { in from_u8() method
Dbinary16.rs84 fn from_u8(n: u8) -> Option<Self> { in from_u8() method