Trait io::KnownLength

source ·
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