Trait PositionedReader

Source
pub trait PositionedReader<'de>: Reader<'de> {
    // Required method
    fn pos(&self) -> usize;
}
Expand description

A reader where the current position is exactly known.

Required Methods§

Source

fn pos(&self) -> usize

The exact position of a reader.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl<'de, R> PositionedReader<'de> for &mut R
where R: ?Sized + PositionedReader<'de>,

Source§

fn pos(&self) -> usize

Implementors§

Source§

impl<'de, R> PositionedReader<'de> for Limit<R>
where R: PositionedReader<'de>,

Source§

impl<'de, R> PositionedReader<'de> for WithPosition<R>
where R: Reader<'de>,