#[repr(C, packed(4))]pub struct BuiltinBitfield32 {
pub value: u32,
pub selector: u32,
}Expand description
Wrapper for bitfield32 type
Fields§
§value: u32§selector: u32Implementations§
Source§impl BuiltinBitfield32
impl BuiltinBitfield32
Sourcepub fn new_from_slice(other: &[u8]) -> Option<Self>
pub fn new_from_slice(other: &[u8]) -> Option<Self>
Copy from contents from slice
Sourcepub fn new_from_zeroed(other: &[u8]) -> Self
pub fn new_from_zeroed(other: &[u8]) -> Self
Copy from contents from another slice, padding with zeros or truncating when needed
pub fn new_from_array(buf: [u8; 8]) -> Self
pub fn as_slice(&self) -> &[u8] ⓘ
pub fn from_slice(buf: &[u8]) -> &Self
pub fn as_array(&self) -> &[u8; 8]
pub fn from_array(buf: &[u8; 8]) -> &Self
pub fn into_array(self) -> [u8; 8]
pub const fn len() -> usize
Trait Implementations§
Source§impl Clone for BuiltinBitfield32
impl Clone for BuiltinBitfield32
Source§impl Debug for BuiltinBitfield32
impl Debug for BuiltinBitfield32
Auto Trait Implementations§
impl Freeze for BuiltinBitfield32
impl RefUnwindSafe for BuiltinBitfield32
impl Send for BuiltinBitfield32
impl Sync for BuiltinBitfield32
impl Unpin for BuiltinBitfield32
impl UnsafeUnpin for BuiltinBitfield32
impl UnwindSafe for BuiltinBitfield32
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