SkipOne

Trait SkipOne 

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

A trait for codecs representing the ability to skip values.

Required Methods§

Source

fn skip(&self, r: &mut ByteCursor) -> Result<(), String>

Skips a single value of the encoded type using the given codec in r.

§Errors

Will return Err if there was a problem during skipping

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§