pub struct BitCount(/* private fields */);Expand description
Number of bits. Used to define sizes of the fields.
This value is limited by BitCount::MIN and BitCount::MAX and can only be created using
the TryFrom trait, to ensure the bit count is validated.
§Examples
use cuckoo_clock::config::BitCount;
let bit_count: BitCount = 8.try_into().unwrap();
let bit_count_max: BitCount = 32.try_into().unwrap();
let bit_count_min: BitCount = 1.try_into().unwrap();ⓘ
use cuckoo_clock::config::BitCount;
let bit_count: BitCount = 0.try_into().unwrap();ⓘ
use cuckoo_clock::config::BitCount;
let bit_count: BitCount = 40.try_into().unwrap();Implementations§
Trait Implementations§
impl Copy for BitCount
impl Eq for BitCount
impl StructuralPartialEq for BitCount
Auto Trait Implementations§
impl Freeze for BitCount
impl RefUnwindSafe for BitCount
impl Send for BitCount
impl Sync for BitCount
impl Unpin for BitCount
impl UnsafeUnpin for BitCount
impl UnwindSafe for BitCount
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