Trait little::PositionSeek [] [src]

pub trait PositionSeek {
    fn seek(&mut self, pos: usize) -> Result<usize, SeekError>;
}

Seek to an offset.

Required Methods

fn seek(&mut self, pos: usize) -> Result<usize, SeekError>

Seek to an offset, in position, in some container/stream.

A seek beyond the end of a container is allowed, but implementation defined.

If the seek operation completed successfully, this method returns the new position from the start of the container.

Implementors