Deconstructable

Trait Deconstructable 

Source
pub trait Deconstructable<Call> {
    type Params: Send;

    // Required methods
    fn into_parts(self) -> (&'static Call, Self::Params);
    fn from_parts(call: &Call, params: Self::Params) -> Self;
}
Available on crate features std only.
Expand description

Trait that the RuntimeApi should implement in order to allow deconstruction and reconstruction to and from its components.

Required Associated Types§

Required Methods§

Source

fn into_parts(self) -> (&'static Call, Self::Params)

Source

fn from_parts(call: &Call, params: Self::Params) -> Self

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§