Trait Dumpable

Source
pub trait Dumpable: Sized {
    type Error;
    type Constant: Constant;

    // Required method
    fn with_dump<R>(
        &self,
        f: impl FnOnce(DumpableValue<'_, Self>) -> R,
    ) -> Result<R, Self::Error>;
}

Required Associated Types§

Required Methods§

Source

fn with_dump<R>( &self, f: impl FnOnce(DumpableValue<'_, Self>) -> R, ) -> Result<R, Self::Error>

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§