Trait Save

Source
pub trait Save: Sized {
    type Error;

    // Required method
    fn save(&self, output: &mut impl Write) -> Result<(), Self::Error>;
}
Expand description

Interface for saving a value into a Write output.

Required Associated Types§

Source

type Error

Associated error which can happen during saving.

Required Methods§

Source

fn save(&self, output: &mut impl Write) -> Result<(), Self::Error>

Saves the value to the output.

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§