pub trait SerializeBytes: Sized {
// Required method
fn serialize_bytes(&self) -> Result<Option<Cow<'_, str>>, Error>;
}
Expand description
Trait that could be implemented by types to support serialization to XML byte streams.
This is usually implemented for simple types like numbers, strings or enums.
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.