pub struct NamespaceTable { /* private fields */ }Expand description
Namespace bindings available while constructing, parsing, or writing XML.
Implementations§
Source§impl NamespaceTable
impl NamespaceTable
pub fn new() -> Self
pub fn declare(&mut self, declaration: NamespaceDeclaration)
pub fn declare_default(&mut self, uri: impl Into<String>) -> XmlResult<()>
pub fn declare_prefix( &mut self, prefix: impl Into<String>, uri: impl Into<String>, ) -> XmlResult<()>
pub fn default_namespace(&self) -> Option<&NamespaceUri>
pub fn resolve_prefix(&self, prefix: &NamespacePrefix) -> Option<&NamespaceUri>
pub fn iter_prefixed( &self, ) -> impl Iterator<Item = (&NamespacePrefix, &NamespaceUri)>
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
Trait Implementations§
Source§impl Clone for NamespaceTable
impl Clone for NamespaceTable
Source§fn clone(&self) -> NamespaceTable
fn clone(&self) -> NamespaceTable
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for NamespaceTable
impl Debug for NamespaceTable
Source§impl Default for NamespaceTable
impl Default for NamespaceTable
Source§fn default() -> NamespaceTable
fn default() -> NamespaceTable
Returns the “default value” for a type. Read more
impl Eq for NamespaceTable
Source§impl PartialEq for NamespaceTable
impl PartialEq for NamespaceTable
Source§fn eq(&self, other: &NamespaceTable) -> bool
fn eq(&self, other: &NamespaceTable) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for NamespaceTable
Auto Trait Implementations§
impl Freeze for NamespaceTable
impl RefUnwindSafe for NamespaceTable
impl Send for NamespaceTable
impl Sync for NamespaceTable
impl Unpin for NamespaceTable
impl UnsafeUnpin for NamespaceTable
impl UnwindSafe for NamespaceTable
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more