pub trait SeqRepr {
type Ctx;
const MAX_LEN: usize;
const SIZE: Option<usize>;
// Required methods
fn serialize<T: MySerialize>(seq: &[T], buf: &mut Vec<u8>);
fn deserialize<'de, T>(
ctx: Self::Ctx,
buf: &mut ParseBuf<'de>,
) -> Result<Cow<'de, [T]>>
where T: Clone + MyDeserialize<'de, Ctx = ()>;
}
Expand description
Representation of a serialized bytes.
Required Associated Types§
Required Associated Constants§
Required Methods§
fn serialize<T: MySerialize>(seq: &[T], buf: &mut Vec<u8>)
fn deserialize<'de, T>( ctx: Self::Ctx, buf: &mut ParseBuf<'de>, ) -> Result<Cow<'de, [T]>>
Object Safety§
This trait is not object safe.