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§

type Wrapped: Into<Self>

A wrapped type.

Object Safety§

This trait is not object safe.

Implementors§

§

impl WrapperTypeDecode for Bytes

§

type Wrapped = Vec<u8>

§

impl<T> WrapperTypeDecode for Rc<T>

§

type Wrapped = T

§

impl<T> WrapperTypeDecode for Box<T>

§

type Wrapped = T

§

impl<T> WrapperTypeDecode for Arc<T>

§

type Wrapped = T