pub trait KnownLength {
    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.

Required methods

Returns the length (size in bytes) of this I/O stream or device.

Implementations on Foreign Types

Implementors