SkipOne

Trait SkipOne 

Source
pub trait SkipOne: Codec {
    // Required method
    fn skip<R: Read + Seek>(&self, r: &mut R) -> Result<()>;
}
Expand description

trait to implement to skip a single item at the current position

Required Methods§

Source

fn skip<R: Read + Seek>(&self, r: &mut R) -> Result<()>

assuming r is at the start of an item, advance r to the end

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.

Implementors§