DeserializeContext

Trait DeserializeContext 

Source
pub trait DeserializeContext {
    // Required methods
    fn default_namespace(&self) -> Option<&XmlNamespace>;
    fn resolve_prefix(&self, prefix: &Prefix) -> Option<&XmlNamespace>;
    fn external_data<T>(&self) -> Option<&T>
       where T: Any;
}
Expand description

Trait that lets you access the namespaces declared on an XML node.

Required Methods§

Source

fn default_namespace(&self) -> Option<&XmlNamespace>

Get the default namespace.

Source

fn resolve_prefix(&self, prefix: &Prefix) -> Option<&XmlNamespace>

Resolve a prefix to a namespace.

Source

fn external_data<T>(&self) -> Option<&T>
where T: Any,

Get a reference to external data associated with this context.

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.

Implementations on Foreign Types§

Source§

impl DeserializeContext for ()

Implementors§