Tuple Fields
0: [bool; SIZE]Implementations
sourceimpl<const SIZE: usize> Bits<SIZE>
impl<const SIZE: usize> Bits<SIZE>
pub fn new() -> Self
pub fn from_signed(x: i32) -> Self
pub fn from_unsigned(x: u32) -> Self
pub fn from_slice(slice: &[bool]) -> Result<Self, BitsError>
pub const fn size(&self) -> usize
pub fn get_bit(&self, n: usize) -> Option<&bool>
pub fn get_bit_mut(&mut self, n: usize) -> Option<&mut bool>
pub fn unsigned_value(&self) -> u32
pub fn signed_value(&self) -> i32
pub fn unsigned_add(&self, other: Self) -> (Self, bool)
pub fn signed_add(&self, other: Self) -> (Self, bool)
pub fn rotate_right(&self, n: usize) -> Self
pub fn rotate_left(&self, n: usize) -> Self
pub fn bits_string(&self, pretty: bool) -> String
pub fn pretty_uhex_string(&self) -> String
Trait Implementations
impl<const SIZE: usize> Copy for Bits<SIZE>
Auto Trait Implementations
impl<const SIZE: usize> RefUnwindSafe for Bits<SIZE>
impl<const SIZE: usize> Send for Bits<SIZE>
impl<const SIZE: usize> Sync for Bits<SIZE>
impl<const SIZE: usize> Unpin for Bits<SIZE>
impl<const SIZE: usize> UnwindSafe for Bits<SIZE>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more