pub struct Offset<Layout, Access> {
pub value: usize,
/* private fields */
}Expand description
Represents an in-memory register with a given layout and access permissions located at an offset from a base address.
Fields§
§value: usizeThe offset in bytes.
Implementations§
Trait Implementations§
impl<Layout, Access> Copy for Offset<Layout, Access>
Auto Trait Implementations§
impl<Layout, Access> Freeze for Offset<Layout, Access>where
PhantomData<(Layout, Access)>: Freeze,
impl<Layout, Access> RefUnwindSafe for Offset<Layout, Access>where
PhantomData<(Layout, Access)>: RefUnwindSafe,
impl<Layout, Access> Send for Offset<Layout, Access>where
PhantomData<(Layout, Access)>: Send,
impl<Layout, Access> Sync for Offset<Layout, Access>where
PhantomData<(Layout, Access)>: Sync,
impl<Layout, Access> Unpin for Offset<Layout, Access>where
PhantomData<(Layout, Access)>: Unpin,
impl<Layout, Access> UnsafeUnpin for Offset<Layout, Access>where
PhantomData<(Layout, Access)>: UnsafeUnpin,
impl<Layout, Access> UnwindSafe for Offset<Layout, Access>where
PhantomData<(Layout, Access)>: UnwindSafe,
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)