#[repr(C)]pub struct __BindgenBitfieldUnit<Storage> { /* private fields */ }
Implementations§
Source§impl<Storage> __BindgenBitfieldUnit<Storage>
impl<Storage> __BindgenBitfieldUnit<Storage>
pub const fn new(storage: Storage) -> __BindgenBitfieldUnit<Storage>
Source§impl<Storage> __BindgenBitfieldUnit<Storage>where
Storage: AsRef<[u8]> + AsMut<[u8]>,
impl<Storage> __BindgenBitfieldUnit<Storage>where
Storage: AsRef<[u8]> + AsMut<[u8]>,
pub fn get_bit(&self, index: usize) -> bool
pub unsafe fn raw_get_bit( this: *const __BindgenBitfieldUnit<Storage>, index: usize, ) -> bool
pub fn set_bit(&mut self, index: usize, val: bool)
pub unsafe fn raw_set_bit( this: *mut __BindgenBitfieldUnit<Storage>, index: usize, val: bool, )
pub fn get(&self, bit_offset: usize, bit_width: u8) -> u64
pub unsafe fn raw_get( this: *const __BindgenBitfieldUnit<Storage>, bit_offset: usize, bit_width: u8, ) -> u64
pub fn set(&mut self, bit_offset: usize, bit_width: u8, val: u64)
pub unsafe fn raw_set( this: *mut __BindgenBitfieldUnit<Storage>, bit_offset: usize, bit_width: u8, val: u64, )
Trait Implementations§
Source§impl<Storage> Clone for __BindgenBitfieldUnit<Storage>where
Storage: Clone,
impl<Storage> Clone for __BindgenBitfieldUnit<Storage>where
Storage: Clone,
Source§fn clone(&self) -> __BindgenBitfieldUnit<Storage>
fn clone(&self) -> __BindgenBitfieldUnit<Storage>
Returns a copy of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<Storage> Debug for __BindgenBitfieldUnit<Storage>where
Storage: Debug,
impl<Storage> Debug for __BindgenBitfieldUnit<Storage>where
Storage: Debug,
Source§impl<Storage> Default for __BindgenBitfieldUnit<Storage>where
Storage: Default,
impl<Storage> Default for __BindgenBitfieldUnit<Storage>where
Storage: Default,
Source§fn default() -> __BindgenBitfieldUnit<Storage>
fn default() -> __BindgenBitfieldUnit<Storage>
Returns the “default value” for a type. Read more
Source§impl<Storage> Hash for __BindgenBitfieldUnit<Storage>where
Storage: Hash,
impl<Storage> Hash for __BindgenBitfieldUnit<Storage>where
Storage: Hash,
Source§impl<Storage> Ord for __BindgenBitfieldUnit<Storage>where
Storage: Ord,
impl<Storage> Ord for __BindgenBitfieldUnit<Storage>where
Storage: Ord,
Source§fn cmp(&self, other: &__BindgenBitfieldUnit<Storage>) -> Ordering
fn cmp(&self, other: &__BindgenBitfieldUnit<Storage>) -> Ordering
1.21.0§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<Storage> PartialEq for __BindgenBitfieldUnit<Storage>where
Storage: PartialEq,
impl<Storage> PartialEq for __BindgenBitfieldUnit<Storage>where
Storage: PartialEq,
Source§impl<Storage> PartialOrd for __BindgenBitfieldUnit<Storage>where
Storage: PartialOrd,
impl<Storage> PartialOrd for __BindgenBitfieldUnit<Storage>where
Storage: PartialOrd,
Source§fn partial_cmp(
&self,
other: &__BindgenBitfieldUnit<Storage>,
) -> Option<Ordering>
fn partial_cmp( &self, other: &__BindgenBitfieldUnit<Storage>, ) -> Option<Ordering>
impl<Storage> Copy for __BindgenBitfieldUnit<Storage>where
Storage: Copy,
impl<Storage> Eq for __BindgenBitfieldUnit<Storage>where
Storage: Eq,
impl<Storage> StructuralPartialEq for __BindgenBitfieldUnit<Storage>
Auto Trait Implementations§
impl<Storage> Freeze for __BindgenBitfieldUnit<Storage>where
Storage: Freeze,
impl<Storage> RefUnwindSafe for __BindgenBitfieldUnit<Storage>where
Storage: RefUnwindSafe,
impl<Storage> Send for __BindgenBitfieldUnit<Storage>where
Storage: Send,
impl<Storage> Sync for __BindgenBitfieldUnit<Storage>where
Storage: Sync,
impl<Storage> Unpin for __BindgenBitfieldUnit<Storage>where
Storage: Unpin,
impl<Storage> UnwindSafe for __BindgenBitfieldUnit<Storage>where
Storage: 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, dst: *mut u8)
unsafe fn clone_to_uninit(&self, dst: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)