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>
impl<Layout, Access> RefUnwindSafe for Offset<Layout, Access>where
Layout: RefUnwindSafe,
Access: RefUnwindSafe,
impl<Layout, Access> Send for Offset<Layout, Access>where
Layout: Send,
Access: Send,
impl<Layout, Access> Sync for Offset<Layout, Access>where
Layout: Sync,
Access: Sync,
impl<Layout, Access> Unpin for Offset<Layout, Access>where
Layout: Unpin,
Access: Unpin,
impl<Layout, Access> UnsafeUnpin for Offset<Layout, Access>
impl<Layout, Access> UnwindSafe for Offset<Layout, Access>where
Layout: UnwindSafe,
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)