pub trait Serializer {
type SerializeError: Debug;
// Required method
fn serialize<T: Counter, W: Write>(
&mut self,
h: &Histogram<T>,
writer: &mut W,
) -> Result<usize, Self::SerializeError>;
}
Expand description
Histogram serializer.
Different implementations serialize to different formats.
Required Associated Types§
Sourcetype SerializeError: Debug
type SerializeError: Debug
Error type returned when serialization fails.
Required Methods§
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.