Trait tetsy_scale_codec::WrapperTypeEncode[][src]

pub trait WrapperTypeEncode: Deref { }

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

impl<T: ?Sized> WrapperTypeEncode for Box<T>[src]

impl<T: ?Sized> WrapperTypeEncode for &T[src]

impl<T: ?Sized> WrapperTypeEncode for &mut T[src]

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

impl<T: ?Sized> WrapperTypeEncode for Arc<T>[src]

impl<T: ?Sized> WrapperTypeEncode for Rc<T>[src]

impl WrapperTypeEncode for String[src]

impl<T> WrapperTypeEncode for Vec<T>[src]

Loading content...

Implementors

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

Loading content...