Trait btlib::Positioned

source ·
pub trait Positioned {
    // Required method
    fn pos(&self) -> usize;
}
Expand description

Trait for streams which can efficiently and infallibly return their current position.

Required Methods§

source

fn pos(&self) -> usize

Returns the position of this stream (byte offset relative to the beginning).

Implementations on Foreign Types§

source§

impl<T: Positioned> Positioned for &T

source§

fn pos(&self) -> usize

source§

impl<T: Positioned> Positioned for &mut T

source§

fn pos(&self) -> usize

Implementors§