Skip to main content

Stream

Trait Stream 

Source
pub trait Stream: Drop {
    // Required methods
    fn tell(&self) -> usize;
    fn size(&self) -> usize;
}

Required Methods§

Source

fn tell(&self) -> usize

get the current position

Source

fn size(&self) -> usize

get the size of the stream

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§