layout::io

Trait Seek

source
pub trait Seek: IO {
    // Required method
    fn seek(&mut self, pos: SeekFrom) -> Result<u64, Self::Error>;

    // Provided methods
    fn stream_len(&mut self) -> Result<u64, Self::Error> { ... }
    fn stream_position(&mut self) -> Result<u64, Self::Error> { ... }
}

Required Methods§

source

fn seek(&mut self, pos: SeekFrom) -> Result<u64, Self::Error>

Provided Methods§

source

fn stream_len(&mut self) -> Result<u64, Self::Error>

source

fn stream_position(&mut self) -> Result<u64, Self::Error>

Implementors§

source§

impl<S: Seek> Seek for StdIO<S>