Trait parity_scale_codec::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.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl<T> WrapperTypeDecode for Box<T>

§

type Wrapped = T

source§

impl<T> WrapperTypeDecode for Rc<T>

§

type Wrapped = T

source§

impl<T> WrapperTypeDecode for Arc<T>

§

type Wrapped = T

Implementors§