pub struct QName {
pub prefix: Option<String>,
pub namespace: Option<String>,
pub local: String,
}Expand description
A qualified name as written (prefix:local or local) together with the namespace
it was resolved to when it was parsed.
Two names are equal when prefix, namespace and local part are all equal; use
QName::same_expanded_name to compare expanded names only.
Fields§
§prefix: Option<String>The prefix as written, if any.
namespace: Option<String>The namespace URI the name belongs to; None for a name in no namespace.
local: StringThe local part.
Implementations§
Trait Implementations§
impl Eq for QName
Source§impl Ord for QName
impl Ord for QName
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for QName
impl PartialOrd for QName
impl StructuralPartialEq for QName
Auto Trait Implementations§
impl Forget for QName
impl Freeze for QName
impl RefUnwindSafe for QName
impl Send for QName
impl Sync for QName
impl Unpin for QName
impl UnsafeUnpin for QName
impl UnwindSafe for QName
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