Struct packable::unpacker::CounterUnpacker
source · [−]pub struct CounterUnpacker<U: Unpacker> { /* private fields */ }
Expand description
An Unpacker
able to keep count of the number of read bytes.
Implementations
sourceimpl<U: Unpacker> CounterUnpacker<U>
impl<U: Unpacker> CounterUnpacker<U>
sourcepub fn new(unpacker: U) -> Self
pub fn new(unpacker: U) -> Self
Creates a new CounterUnpacker
.
sourcepub fn into_inner(self) -> U
pub fn into_inner(self) -> U
Consumes the value to return the inner Unpacker
.
Trait Implementations
sourceimpl<U: Unpacker> Unpacker for CounterUnpacker<U>
impl<U: Unpacker> Unpacker for CounterUnpacker<U>
Auto Trait Implementations
impl<U> RefUnwindSafe for CounterUnpacker<U> where
U: RefUnwindSafe,
impl<U> Send for CounterUnpacker<U> where
U: Send,
impl<U> Sync for CounterUnpacker<U> where
U: Sync,
impl<U> Unpin for CounterUnpacker<U> where
U: Unpin,
impl<U> UnwindSafe for CounterUnpacker<U> where
U: UnwindSafe,
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