Struct linux_uapi::x86_64::uref
source · #[repr(transparent)]pub struct uref<T> {
pub addr: uaddr,
/* private fields */
}
Fields§
§addr: uaddr
Trait Implementations§
source§impl<T> FromBytes for uref<T>where
uaddr: FromBytes,
PhantomData<T>: FromBytes,
impl<T> FromBytes for uref<T>where
uaddr: FromBytes,
PhantomData<T>: FromBytes,
§fn slice_from_prefix(bytes: &[u8], count: usize) -> Option<(&[Self], &[u8])>where
Self: Sized + NoCell,
fn slice_from_prefix(bytes: &[u8], count: usize) -> Option<(&[Self], &[u8])>where
Self: Sized + NoCell,
Interprets the prefix of the given
bytes
as a &[Self]
with length
equal to count
without copying. Read more§fn slice_from_suffix(bytes: &[u8], count: usize) -> Option<(&[u8], &[Self])>where
Self: Sized + NoCell,
fn slice_from_suffix(bytes: &[u8], count: usize) -> Option<(&[u8], &[Self])>where
Self: Sized + NoCell,
Interprets the suffix of the given
bytes
as a &[Self]
with length
equal to count
without copying. Read more§fn mut_slice_from_prefix(
bytes: &mut [u8],
count: usize
) -> Option<(&mut [Self], &mut [u8])>where
Self: Sized + IntoBytes + NoCell,
fn mut_slice_from_prefix(
bytes: &mut [u8],
count: usize
) -> Option<(&mut [Self], &mut [u8])>where
Self: Sized + IntoBytes + NoCell,
Interprets the prefix of the given
bytes
as a &mut [Self]
with length
equal to count
without copying. Read more§fn mut_slice_from_suffix(
bytes: &mut [u8],
count: usize
) -> Option<(&mut [u8], &mut [Self])>where
Self: Sized + IntoBytes + NoCell,
fn mut_slice_from_suffix(
bytes: &mut [u8],
count: usize
) -> Option<(&mut [u8], &mut [Self])>where
Self: Sized + IntoBytes + NoCell,
Interprets the suffix of the given
bytes
as a &mut [Self]
with length
equal to count
without copying. Read more§fn read_from_prefix(bytes: &[u8]) -> Option<Self>where
Self: Sized,
fn read_from_prefix(bytes: &[u8]) -> Option<Self>where
Self: Sized,
source§impl<T> FromZeros for uref<T>where
uaddr: FromZeros,
PhantomData<T>: FromZeros,
impl<T> FromZeros for uref<T>where
uaddr: FromZeros,
PhantomData<T>: FromZeros,
source§impl<T> IntoBytes for uref<T>where
uaddr: IntoBytes,
PhantomData<T>: IntoBytes,
impl<T> IntoBytes for uref<T>where
uaddr: IntoBytes,
PhantomData<T>: IntoBytes,
source§impl<T: Ord> Ord for uref<T>
impl<T: Ord> Ord for uref<T>
source§impl<T: PartialEq> PartialEq for uref<T>
impl<T: PartialEq> PartialEq for uref<T>
source§impl<T: PartialOrd> PartialOrd for uref<T>
impl<T: PartialOrd> PartialOrd for uref<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 moreimpl<T: Copy> Copy for uref<T>
impl<T: Eq> Eq for uref<T>
impl<T> StructuralPartialEq for uref<T>
Auto Trait Implementations§
impl<T> Freeze for uref<T>
impl<T> RefUnwindSafe for uref<T>where
T: RefUnwindSafe,
impl<T> Send for uref<T>where
T: Send,
impl<T> Sync for uref<T>where
T: Sync,
impl<T> Unpin for uref<T>where
T: Unpin,
impl<T> UnwindSafe for uref<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