pub trait SerializedSize: Serialize {
// Required method
fn accumulate_size(
&self,
field: &[&'static str],
into: &mut HashMap<Vec<&'static str>, usize>,
);
// Provided method
fn report_size(&self) { ... }
}Required Methods§
fn accumulate_size( &self, field: &[&'static str], into: &mut HashMap<Vec<&'static str>, usize>, )
Provided Methods§
fn report_size(&self)
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.