pub struct QName {
pub ns: Atom,
pub local: Atom,
pub prefix: Atom,
}Expand description
An expanded name. Equality and hashing ignore the prefix.
Fields§
§ns: Atom§local: Atom§prefix: AtomImplementations§
Source§impl QName
impl QName
pub fn new(ns: &str, local: &str) -> QName
pub fn with_prefix(ns: &str, local: &str, prefix: &str) -> QName
pub fn is(&self, ns: &str, local: &str) -> bool
Sourcepub fn clark(&self) -> String
pub fn clark(&self) -> String
{ns}local (James Clark notation); local when there is no namespace.
Sourcepub fn from_clark(s: &str) -> QName
pub fn from_clark(s: &str) -> QName
Parse {ns}local or local.
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
Auto Trait Implementations§
impl Forget for QName
impl Freeze for QName
impl Move 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