Trait DeserializeTagged

Source
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§

Source

type Error: Error + Send + Sync + 'static

Error type.

Required Methods§

Source

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.

Implementors§