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 checked_add_signed(&self, rhs: isize) -> Option<UserAddress>
pub fn checked_sub(&self, rhs: usize) -> Option<UserAddress>
pub fn saturating_add(&self, rhs: usize) -> Self
pub fn saturating_sub(&self, rhs: usize) -> Self
pub fn is_lower_32bit(&self) -> bool
Trait Implementations§
Source§impl<T> Deref for UserRef<T>
impl<T> Deref for UserRef<T>
Source§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, T64, T32> From<UserRef<T64>> for MappingMultiArchUserRef<T, T64, T32>
impl<T, T64, T32> From<UserRef<T64>> for MappingMultiArchUserRef<T, T64, T32>
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: PartialOrd> PartialOrd for UserRef<T>
impl<T: PartialOrd> PartialOrd for UserRef<T>
impl<T> 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more