#[repr(C)]pub struct __BindgenBitfieldUnit<Storage> { /* private fields */ }
Implementations§
source§impl<Storage> __BindgenBitfieldUnit<Storage>
impl<Storage> __BindgenBitfieldUnit<Storage>
source§impl<Storage> __BindgenBitfieldUnit<Storage>
impl<Storage> __BindgenBitfieldUnit<Storage>
pub fn get_bit(&self, index: usize) -> bool
pub unsafe fn raw_get_bit(this: *const Self, index: usize) -> bool
pub fn set_bit(&mut self, index: usize, val: bool)
pub unsafe fn raw_set_bit(this: *mut Self, index: usize, val: bool)
pub fn get(&self, bit_offset: usize, bit_width: u8) -> u64
pub unsafe fn raw_get( this: *const Self, 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 Self, bit_offset: usize, bit_width: u8, val: u64, )
Trait Implementations§
source§impl<Storage: Clone> Clone for __BindgenBitfieldUnit<Storage>
impl<Storage: Clone> Clone for __BindgenBitfieldUnit<Storage>
source§fn clone(&self) -> __BindgenBitfieldUnit<Storage>
fn clone(&self) -> __BindgenBitfieldUnit<Storage>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<Storage: Debug> Debug for __BindgenBitfieldUnit<Storage>
impl<Storage: Debug> Debug for __BindgenBitfieldUnit<Storage>
source§impl<Storage: Default> Default for __BindgenBitfieldUnit<Storage>
impl<Storage: Default> Default for __BindgenBitfieldUnit<Storage>
source§fn default() -> __BindgenBitfieldUnit<Storage>
fn default() -> __BindgenBitfieldUnit<Storage>
Returns the “default value” for a type. Read more
source§impl<Storage: Hash> Hash for __BindgenBitfieldUnit<Storage>
impl<Storage: Hash> Hash for __BindgenBitfieldUnit<Storage>
source§impl<Storage: Ord> Ord for __BindgenBitfieldUnit<Storage>
impl<Storage: Ord> Ord for __BindgenBitfieldUnit<Storage>
source§fn cmp(&self, other: &__BindgenBitfieldUnit<Storage>) -> Ordering
fn cmp(&self, other: &__BindgenBitfieldUnit<Storage>) -> Ordering
1.21.0 · source§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> PartialEq for __BindgenBitfieldUnit<Storage>
impl<Storage: PartialEq> PartialEq for __BindgenBitfieldUnit<Storage>
source§fn eq(&self, other: &__BindgenBitfieldUnit<Storage>) -> bool
fn eq(&self, other: &__BindgenBitfieldUnit<Storage>) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.source§impl<Storage: PartialOrd> PartialOrd for __BindgenBitfieldUnit<Storage>
impl<Storage: PartialOrd> PartialOrd for __BindgenBitfieldUnit<Storage>
impl<Storage: Copy> Copy for __BindgenBitfieldUnit<Storage>
impl<Storage: Eq> Eq for __BindgenBitfieldUnit<Storage>
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§
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
)source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more