pub trait Serialize {
const FIXED_WORDS: usize;
// Required methods
fn tot_len(&self) -> usize;
fn fill(&self, buf: &mut AllocBuf<'_>, a: &mut Alloc<'_>) -> Result<()>;
}
Required Associated Constants§
const FIXED_WORDS: usize
Required Methods§
fn tot_len(&self) -> usize
fn fill(&self, buf: &mut AllocBuf<'_>, a: &mut Alloc<'_>) -> Result<()>
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.