pub trait DeserializeTagged: Sized + MaybeStatic {
type Error: Error + Send + Sync + 'static;
// Required method
fn deserialize<TDeserializer: Deserializer>(
start: &TagStart<'_>,
deserializer: &mut TDeserializer,
) -> Result<Self, Self::Error>;
}
Expand description
Trait implemented by types that want to be deserializable from tagged XML elements.
Required Associated Types§
Required Methods§
Sourcefn deserialize<TDeserializer: Deserializer>(
start: &TagStart<'_>,
deserializer: &mut TDeserializer,
) -> Result<Self, Self::Error>
fn deserialize<TDeserializer: Deserializer>( start: &TagStart<'_>, deserializer: &mut TDeserializer, ) -> Result<Self, Self::Error>
Deserializes into a new Self
.
§Errors
When or if a error is returned is decided by the type implementing this trait.
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.