pub struct BitCounter { /* private fields */ }Implementations§
Source§impl BitCounter
impl BitCounter
pub fn new(start_bits: u32, current_bits: u32, max_bits: u32) -> BitCounter
pub fn overflowed(&self) -> bool
pub fn bits_needed(&self) -> u32
Trait Implementations§
Source§impl BitWrite for BitCounter
impl BitWrite for BitCounter
Auto Trait Implementations§
impl Freeze for BitCounter
impl RefUnwindSafe for BitCounter
impl Send for BitCounter
impl Sync for BitCounter
impl Unpin for BitCounter
impl UnsafeUnpin for BitCounter
impl UnwindSafe for BitCounter
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