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§

Source§

impl Dumpable for PyObjectRef

Source§

type Error = DumpError

Source§

type Constant = Literal

Source§

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

Morty Proxy This is a proxified and sanitized view of the page, visit original site.