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 Constants§
Required Associated Types§
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]>>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.