Trait SampleEntryExtension

Source
pub trait SampleEntryExtension:
    Debug
    + Clone
    + PartialEq {
    // Required methods
    fn demux<R: Read>(reader: &mut R) -> Result<Self>
       where Self: Sized;
    fn size(&self) -> u64;
    fn mux<W: Write>(&self, writer: &mut W) -> Result<()>;

    // Provided method
    fn validate(&self) -> Result<()> { ... }
}

Required Methods§

Source

fn demux<R: Read>(reader: &mut R) -> Result<Self>
where Self: Sized,

Source

fn size(&self) -> u64

Source

fn mux<W: Write>(&self, writer: &mut W) -> Result<()>

Provided Methods§

Source

fn validate(&self) -> Result<()>

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§