Trait Seek

Source
pub trait Seek {
    // Required method
    fn seek(&mut self, pos: SeekFrom) -> Result<u64, Error>;
}
Expand description

Trait to move the current read/write position of a stream.

There’s no reason this trait should have been in std and not core.

Required Methods§

Source

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

Implementations on Foreign Types§

Source§

impl Seek for File

Available on crate feature std only.
Source§

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

Implementors§