pub struct Virt<T>(/* private fields */);Implementations§
Source§impl<T> Virt<T>
impl<T> Virt<T>
pub const fn new(val: usize) -> Self
pub fn raw(self) -> usize
pub fn align_down(self, align: usize) -> Self
pub fn align_up(self, align: usize) -> Self
pub fn align_offset(self, align: usize) -> usize
pub fn is_aligned_4k(self) -> bool
pub fn is_aligned_to(self, align: usize) -> bool
Trait Implementations§
Source§impl<T: PartialOrd> PartialOrd for Virt<T>
impl<T: PartialOrd> PartialOrd for Virt<T>
impl<T: Copy> Copy for Virt<T>
impl<T> StructuralPartialEq for Virt<T>
Auto Trait Implementations§
impl<T> Freeze for Virt<T>
impl<T> RefUnwindSafe for Virt<T>where
T: RefUnwindSafe,
impl<T> Send for Virt<T>where
T: Send,
impl<T> Sync for Virt<T>where
T: Sync,
impl<T> Unpin for Virt<T>where
T: Unpin,
impl<T> UnwindSafe for Virt<T>where
T: UnwindSafe,
Blanket Implementations§
Source§impl<T> Background for T
impl<T> Background for T
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more