pub trait Serializer<'ser, T>:
Iterator<Item = Result<Event<'ser>, Error>>
+ Debug
+ Sized {
// Required method
fn init(
value: &'ser T,
name: Option<&'ser str>,
is_root: bool,
) -> Result<Self, Error>;
}
Expand description
Trait that defines a serializer that can be used to destruct a type to
suitable XML Event
s.
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.