pub trait Namespaces: Sync {
// Required methods
fn ns_of(&self, element: u32) -> u32;
fn uri(&self, id: u32) -> &str;
fn id_of(&self, uri: &str) -> Option<u32>;
}Expand description
The namespaces of an XML document built into a parsec-html tree, which the tree leaves to its host. Ids are the host’s; 0 is no namespace.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".