Trait concordium_std::Seek[][src]

pub trait Seek {
    type Err;
    fn seek(&mut self, pos: SeekFrom) -> Result<u64, Self::Err>;
}
Expand description

The Seek trait provides a cursor which can be moved within a stream of bytes. This is essentially a copy of std::io::Seek, but avoiding its dependency on std::io::Error, and the associated code size increase.

Associated Types

Required methods

Seek to the new position. If successful, return the new position from the beginning of the stream.

Implementors