parity_scale_codec

Trait 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 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>