Home
last modified time | relevance | path

Searched defs:SafeNum (Results 1 – 3 of 3) sorted by relevance

/aosp_15_r20/bootable/libbootloader/gbl/libsafemath/src/
H A Dlib.rs174 pub struct SafeNum(Result<Primitive, Error>); struct
176 impl fmt::Debug for SafeNum { implementation
191 impl SafeNum { implementation
/aosp_15_r20/bootable/libbootloader/gbl/libutils/src/
H A Dlib.rs40 pub fn aligned_subslice<T>(bytes: &mut [u8], alignment: T) -> Result<&mut [u8]> in aligned_subslice()
58 pub fn aligned_offset<T>(buffer: &[u8], alignment: T) -> Result<usize> in aligned_offset()
/aosp_15_r20/bootable/libbootloader/gbl/libstorage/src/
H A Dlib.rs159 pub fn is_aligned(value: impl Into<SafeNum>, alignment: impl Into<SafeNum>) -> Result<bool> { in is_aligned()
170 fn check_range<T>(info: BlockInfo, offset: u64, buffer: &[T]) -> Result<SafeNum> { in check_range()