pub struct CountWriter { /* private fields */ }Expand description
A BufWriter that only counts the bytes.
Implementations§
Trait Implementations§
Source§impl BufWriter for CountWriter
impl BufWriter for CountWriter
Source§impl Default for CountWriter
impl Default for CountWriter
Source§fn default() -> CountWriter
fn default() -> CountWriter
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for CountWriter
impl RefUnwindSafe for CountWriter
impl Send for CountWriter
impl Sync for CountWriter
impl Unpin for CountWriter
impl UnwindSafe for CountWriter
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more