Trait parity_scale_codec::WrapperTypeEncode

source ·
pub trait WrapperTypeEncode: Deref { }
Expand description

A marker trait for types that wrap other encodable type.

Such types should not carry any additional information that would require to be encoded, because the encoding is assumed to be the same as the wrapped type.

The wrapped type that is referred to is the Deref::Target.

Implementations on Foreign Types§

source§

impl WrapperTypeEncode for Bytes

source§

impl WrapperTypeEncode for String

source§

impl<'a, T: ToOwned + ?Sized> WrapperTypeEncode for Cow<'a, T>

source§

impl<T> WrapperTypeEncode for Vec<T>

source§

impl<T: ?Sized> WrapperTypeEncode for &T

source§

impl<T: ?Sized> WrapperTypeEncode for &mut T

source§

impl<T: ?Sized> WrapperTypeEncode for Box<T>

source§

impl<T: ?Sized> WrapperTypeEncode for Rc<T>

source§

impl<T: ?Sized> WrapperTypeEncode for Arc<T>

Implementors§

source§

impl<'a, T: EncodeLike<U>, U: Encode> WrapperTypeEncode for Ref<'a, T, U>