pub struct Address(/* private fields */);Implementations§
Source§impl Address
impl Address
pub fn deref(self) -> Self
pub fn from(val: usize) -> Address
pub fn region_start(self, size: usize) -> Region
pub fn offset_from(self, base: Address) -> usize
pub fn offset(self, offset: usize) -> Address
pub fn sub(self, offset: usize) -> Address
pub fn add_ptr(self, words: usize) -> Address
pub fn sub_ptr(self, words: usize) -> Address
pub fn to_usize(self) -> usize
pub fn from_ptr<T>(ptr: *const T) -> Address
pub fn to_ptr<T>(&self) -> *const T
pub fn to_mut_ptr<T>(&self) -> *mut T
pub fn null() -> Address
pub fn is_null(self) -> bool
pub fn is_non_null(self) -> bool
pub fn align_page(self) -> Address
pub fn align_page_down(self) -> Address
pub fn is_page_aligned(self) -> bool
pub const fn and(self, x: Address) -> Self
pub const fn or(self, x: Address) -> Self
Trait Implementations§
Source§impl Ord for Address
impl Ord for Address
Source§impl PartialOrd for Address
impl PartialOrd for Address
impl Copy for Address
impl Eq for Address
impl StructuralPartialEq for Address
Auto Trait Implementations§
impl Freeze for Address
impl RefUnwindSafe for Address
impl Send for Address
impl Sync for Address
impl Unpin for Address
impl UnsafeUnpin for Address
impl UnwindSafe for Address
Blanket Implementations§
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