Trait concordium_contracts_common::Seek[][src]

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

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

Loading content...

Required methods

fn seek(&mut self, pos: SeekFrom) -> Result<u64, Self::Err>[src]

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

Loading content...

Implementors

Loading content...