#[repr(transparent)]pub struct NestedBitfields(pub u16);
Expand description
A bitfield showcasing how to use nested bitfields.
Tuple Fields§
§0: u16
Implementations§
Source§impl NestedBitfields
impl NestedBitfields
pub fn read_only_nested( &self, ) -> NestedRef<'_, Self, AccessRestrictions, { 0 }, { _ }>
pub fn with_write_only_nested(self, value: AccessRestrictions) -> Self
pub fn set_write_only_nested(&mut self, value: AccessRestrictions)
pub fn read_write_nested( &self, ) -> NestedRef<'_, Self, AccessRestrictions, { 8 }, { _ }>
pub fn read_write_nested_mut( &mut self, ) -> NestedRefMut<'_, Self, AccessRestrictions, { 8 }, { _ }>
pub fn with_read_write_nested(self, value: AccessRestrictions) -> Self
pub fn set_read_write_nested(&mut self, value: AccessRestrictions)
Trait Implementations§
Source§impl Bitfield for NestedBitfields
impl Bitfield for NestedBitfields
Source§impl Debug for NestedBitfields
impl Debug for NestedBitfields
Source§impl Deref for NestedBitfields
impl Deref for NestedBitfields
Source§impl From<NestedBitfields> for u16
impl From<NestedBitfields> for u16
Source§fn from(other: NestedBitfields) -> Self
fn from(other: NestedBitfields) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for NestedBitfields
impl RefUnwindSafe for NestedBitfields
impl Send for NestedBitfields
impl Sync for NestedBitfields
impl Unpin for NestedBitfields
impl UnwindSafe for NestedBitfields
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, U> UnsafeFrom<U> for Twhere
U: Into<T>,
impl<T, U> UnsafeFrom<U> for Twhere
U: Into<T>,
Source§unsafe fn unsafe_from(other: U) -> T
unsafe fn unsafe_from(other: U) -> T
Calls U::into(other)
.
That is, this conversion is whatever the implementation of Into
<T> for U
chooses to
do.
Source§impl<T, U> UnsafeInto<U> for Twhere
U: UnsafeFrom<T>,
impl<T, U> UnsafeInto<U> for Twhere
U: UnsafeFrom<T>,
Source§unsafe fn unsafe_into(self) -> U
unsafe fn unsafe_into(self) -> U
Calls U::unsafe_from(self)
.
That is, this conversion is whatever the implementation of UnsafeFrom
<T> for U
chooses to do.