#[repr(transparent)]pub struct ContextId(pub u32);
Expand description
A general-purpose read/write register.
Tuple Fields§
§0: u32
Implementations§
Source§impl ContextId
impl ContextId
Sourcepub const fn context_id(&self) -> u8
pub const fn context_id(&self) -> u8
Context ID
Sourcepub fn set_context_id(&mut self, val: u8)
pub fn set_context_id(&mut self, val: u8)
Context ID
Trait Implementations§
impl Copy for ContextId
impl Eq for ContextId
impl StructuralPartialEq for ContextId
Auto Trait Implementations§
impl Freeze for ContextId
impl RefUnwindSafe for ContextId
impl Send for ContextId
impl Sync for ContextId
impl Unpin for ContextId
impl UnwindSafe for ContextId
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,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)