#[repr(C)]struct BitfieldUnit<Storage> {
storage: Storage,
}
Available on non-
Py_LIMITED_API
only.Fields§
§storage: Storage
Implementations§
Source§impl<Storage> BitfieldUnit<Storage>
impl<Storage> BitfieldUnit<Storage>
Source§impl<Storage> BitfieldUnit<Storage>
impl<Storage> BitfieldUnit<Storage>
fn get_bit(&self, index: usize) -> bool
Available on non-
GraalPy
only.fn set_bit(&mut self, index: usize, val: bool)
Available on non-
GraalPy
only.fn get(&self, bit_offset: usize, bit_width: u8) -> u64
Available on non-
GraalPy
only.fn set(&mut self, bit_offset: usize, bit_width: u8, val: u64)
Available on non-
GraalPy
only.Auto Trait Implementations§
impl<Storage> Freeze for BitfieldUnit<Storage>where
Storage: Freeze,
impl<Storage> RefUnwindSafe for BitfieldUnit<Storage>where
Storage: RefUnwindSafe,
impl<Storage> Send for BitfieldUnit<Storage>where
Storage: Send,
impl<Storage> Sync for BitfieldUnit<Storage>where
Storage: Sync,
impl<Storage> Unpin for BitfieldUnit<Storage>where
Storage: Unpin,
impl<Storage> UnwindSafe for BitfieldUnit<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> SizedTypeProperties for T
impl<T> SizedTypeProperties for T
Source§#[doc(hidden)] const IS_ZST: bool = _
#[doc(hidden)] const IS_ZST: bool = _
🔬This is a nightly-only experimental API. (
sized_type_properties
)Source§#[doc(hidden)] const LAYOUT: Layout = _
#[doc(hidden)] const LAYOUT: Layout = _
🔬This is a nightly-only experimental API. (
sized_type_properties
)Source§#[doc(hidden)] const MAX_SLICE_LEN: usize = _
#[doc(hidden)] const MAX_SLICE_LEN: usize = _
🔬This is a nightly-only experimental API. (
sized_type_properties
)The largest safe length for a
[Self]
. Read more