exposed struct CountingWriter {
count: usize,
}
Counts bytes without storing them.
Methods
method newsource
fn new() -> CountingWriter { ... }
A writer that has counted nothing yet.
Instances
instance Writer[CountingWriter]source
instance Writer[CountingWriter] { ... }
In core::fmt.
Each write adds its length to the count.