parity_scale_codec

Trait WrapperTypeDecode

Source
pub trait WrapperTypeDecode: Sized {
    type Wrapped: Into<Self>;
}
Expand description

A marker trait for types that can be created solely from other decodable types.

The decoding of such type is assumed to be the same as the wrapped type.

Required Associated Types§

Source

type Wrapped: Into<Self>

A wrapped type.

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.

Implementations on Foreign Types§

Source§

impl<T> WrapperTypeDecode for Box<T>

Source§

impl<T> WrapperTypeDecode for Rc<T>

Source§

impl<T> WrapperTypeDecode for Arc<T>

Implementors§