pub struct ExpandedName {
pub namespace: Option<String>,
pub local: String,
}Expand description
An expanded name: a local part plus an optional namespace URI.
XML names compare by namespace URI and local name, never by
prefix — <a:x xmlns:a="u"/> and <b:x xmlns:b="u"/> are the same
element. Keeping the URI here rather than the prefix is what makes
that comparison correct by construction.
Fields§
§namespace: Option<String>The namespace URI, if the name is in a namespace.
local: StringThe local part of the name, without any prefix.
Implementations§
Trait Implementations§
Source§impl Clone for ExpandedName
impl Clone for ExpandedName
Source§fn clone(&self) -> ExpandedName
fn clone(&self) -> ExpandedName
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 ExpandedName
impl Debug for ExpandedName
impl Eq for ExpandedName
Source§impl Hash for ExpandedName
impl Hash for ExpandedName
Source§impl PartialEq for ExpandedName
impl PartialEq for ExpandedName
impl StructuralPartialEq for ExpandedName
Auto Trait Implementations§
impl Freeze for ExpandedName
impl RefUnwindSafe for ExpandedName
impl Send for ExpandedName
impl Sync for ExpandedName
impl Unpin for ExpandedName
impl UnsafeUnpin for ExpandedName
impl UnwindSafe for ExpandedName
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