Skip to main content

Dumpable

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".

Implementors§

Source§

impl Dumpable for PyObjectRef

Source§

type Error = DumpError

Source§

type Constant = Literal

Source§

impl<C> Dumpable for C
where C: Constant,