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§

§

impl WrapperTypeEncode for Bytes

§

impl<T> WrapperTypeEncode for &T
where T: ?Sized,

§

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

Implementors§

§

impl WrapperTypeEncode for String

§

impl WrapperTypeEncode for gclient::ext::sp_core::Bytes

§

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

§

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

§

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

§

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

§

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

§

impl<T> WrapperTypeEncode for Vec<T>