pub trait TypedSerialized {
    type T;

    fn new(serialized: Vec<u8>) -> Self
    where
        Self: Sized
; fn as_slice(&self) -> &[u8]Notable traits for &'_ [u8]impl<'_> Read for &'_ [u8]impl<'_> Write for &'_ mut [u8]; fn into_vec(self) -> Vec<u8>; fn serialize(v: &Self::T) -> Result<Self, Error>
    where
        Self: Sized,
        Self::T: Serialize
; fn deserialize<'de>(&'de self) -> Result<Self::T, Error>
    where
        Self::T: Deserialize<'de>
; }
Expand description

Serialization abstract with type to serialize.

Serializer implementations must implement this trait.

Required Associated Types

Type to serialize

Required Methods

Constructor

Ref to serialized.

Into serialized.

Failures
Failures

Implementors