Struct mozjs_sys::jsapi::__BindgenBitfieldUnit
source · #[repr(C)]pub struct __BindgenBitfieldUnit<Storage> {
storage: Storage,
}
Fields§
§storage: Storage
Implementations§
source§impl<Storage> __BindgenBitfieldUnit<Storage>
impl<Storage> __BindgenBitfieldUnit<Storage>
source§impl<Storage> __BindgenBitfieldUnit<Storage>
impl<Storage> __BindgenBitfieldUnit<Storage>
fn extract_bit(byte: u8, index: usize) -> bool
pub fn get_bit(&self, index: usize) -> bool
pub unsafe fn raw_get_bit(this: *const Self, index: usize) -> bool
fn change_bit(byte: u8, index: usize, val: bool) -> u8
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<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