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.
pub trait Seek {
// Required method
fn seek(&mut self, pos: SeekFrom) -> Result<u64, Error>;
}
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.