Struct starnix_uapi::user_address::UserRef
source · pub struct UserRef<T> { /* private fields */ }
Implementations§
Methods from Deref<Target = UserAddress>§
pub const NULL: Self = _
pub fn ptr(&self) -> zx_vaddr_t
pub fn round_up(&self, increment: u64) -> Result<UserAddress, Errno>
pub fn is_aligned(&self, alignment: u64) -> bool
pub fn is_null(&self) -> bool
pub fn checked_add(&self, rhs: usize) -> Option<UserAddress>
pub fn saturating_add(&self, rhs: usize) -> Self
Trait Implementations§
source§impl<T> Deref for UserRef<T>
impl<T> Deref for UserRef<T>
§type Target = UserAddress
type Target = UserAddress
The resulting type after dereferencing.
source§fn deref(&self) -> &UserAddress
fn deref(&self) -> &UserAddress
Dereferences the value.
source§impl<T> From<UserAddress> for UserRef<T>
impl<T> From<UserAddress> for UserRef<T>
source§fn from(user_address: UserAddress) -> Self
fn from(user_address: UserAddress) -> Self
Converts to this type from the input type.
source§impl<T> From<UserRef<T>> for UserAddress
impl<T> From<UserRef<T>> for UserAddress
source§fn from(user: UserRef<T>) -> UserAddress
fn from(user: UserRef<T>) -> UserAddress
Converts to this type from the input type.
source§impl<T: Ord> Ord for UserRef<T>
impl<T: Ord> Ord for UserRef<T>
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl<T: PartialEq> PartialEq for UserRef<T>
impl<T: PartialEq> PartialEq for UserRef<T>
source§impl<T: PartialOrd> PartialOrd for UserRef<T>
impl<T: PartialOrd> PartialOrd for UserRef<T>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl<T> TryFrom<UserBuffer> for UserRef<T>
impl<T> TryFrom<UserBuffer> for UserRef<T>
impl<T: Copy> Copy for UserRef<T>
impl<T: Eq> Eq for UserRef<T>
impl<T> StructuralPartialEq for UserRef<T>
Auto Trait Implementations§
impl<T> Freeze for UserRef<T>
impl<T> RefUnwindSafe for UserRef<T>where
T: RefUnwindSafe,
impl<T> Send for UserRef<T>where
T: Send,
impl<T> Sync for UserRef<T>where
T: Sync,
impl<T> Unpin for UserRef<T>where
T: Unpin,
impl<T> UnwindSafe for UserRef<T>where
T: UnwindSafe,
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