Trait io::KnownLength
source · pub trait KnownLength {
// Required method
fn len(&self) -> usize;
}
Expand description
A trait that represents an I/O stream that has a known length, e.g., a disk drive.
This trait exists to enable seeking to an offset from the end of the stream.