#[repr(C)]pub struct Offset<T: Copy>(/* private fields */);
Expand description
A relative offset to another struct in the cache.
§Implementation details
Trait Implementations§
Source§impl<T: AnyBitPattern + Copy> IntoOffset for Offset<T>
impl<T: AnyBitPattern + Copy> IntoOffset for Offset<T>
impl<T: Copy + Copy> Copy for Offset<T>
impl<T: Copy + 'static> Pod for Offset<T>
Auto Trait Implementations§
impl<T> Freeze for Offset<T>
impl<T> RefUnwindSafe for Offset<T>where
T: RefUnwindSafe,
impl<T> Send for Offset<T>where
T: Send,
impl<T> Sync for Offset<T>where
T: Sync,
impl<T> Unpin for Offset<T>where
T: Unpin,
impl<T> UnwindSafe for Offset<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> CheckedBitPattern for Twhere
T: AnyBitPattern,
impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
Source§type Bits = T
type Bits = T
Self
must have the same layout as the specified Bits
except for
the possible invalid bit patterns being checked during
is_valid_bit_pattern
.Source§fn is_valid_bit_pattern(_bits: &T) -> bool
fn is_valid_bit_pattern(_bits: &T) -> bool
If this function returns true, then it must be valid to reinterpret
bits
as &Self
.