Struct mozjs::jsapi::__BindgenBitfieldUnit
source · #[repr(C)]pub struct __BindgenBitfieldUnit<Storage> {
storage: Storage,
}
Fields§
§storage: Storage
Implementations§
source§impl<Storage> __BindgenBitfieldUnit<Storage>
impl<Storage> __BindgenBitfieldUnit<Storage>
pub const fn new(storage: 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 __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 · 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 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 · 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 for __BindgenBitfieldUnit<Storage>where
Storage: PartialEq,
impl<Storage> PartialEq for __BindgenBitfieldUnit<Storage>where
Storage: PartialEq,
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 for __BindgenBitfieldUnit<Storage>where
Storage: PartialOrd,
impl<Storage> PartialOrd for __BindgenBitfieldUnit<Storage>where
Storage: PartialOrd,
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§
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<T> Filterable for T
impl<T> Filterable for T
source§fn filterable(
self,
filter_name: &'static str,
) -> RequestFilterDataProvider<T, fn(_: DataRequest<'_>) -> bool>
fn filterable( self, filter_name: &'static str, ) -> RequestFilterDataProvider<T, fn(_: DataRequest<'_>) -> bool>
Creates a filterable data provider with the given name for debugging. Read more
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