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<T: ?Sized> WrapperTypeEncode for Box<T>

source§

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

source§

impl WrapperTypeEncode for Bytes

source§

impl<T> WrapperTypeEncode for Vec<T>

source§

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

source§

impl<T: ?Sized> WrapperTypeEncode for &T

source§

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

source§

impl WrapperTypeEncode for String

source§

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

Implementors§

source§

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