pub trait Serialize<C: Codec = LowerHex> {
// Required method
fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer;
}Expand description
Types that can be serialized via #[serde(with = "serde_human_bytes")].
Parameterized by C: Codec — the encoding strategy used in human-readable
mode. Defaults to LowerHex for source-compatibility
with the original (un-parameterized) trait.
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".