pub struct Name {
pub prefix: Option<Box<str>>,
pub local: Box<str>,
pub ns: Ns,
}Expand description
A name as it appeared, and the namespace it resolved to.
The prefix is kept alongside the resolved namespace because writing is a
faithful re-emission: a document that spells the text namespace t: rather
than text: is written back its own way.
Fields§
§prefix: Option<Box<str>>The prefix as written, without the colon. None for an unprefixed name.
local: Box<str>The part after the colon.
ns: NsWhere the prefix pointed.
Implementations§
Trait Implementations§
impl Eq for Name
impl StructuralPartialEq for Name
Auto Trait Implementations§
impl Freeze for Name
impl RefUnwindSafe for Name
impl Send for Name
impl Sync for Name
impl Unpin for Name
impl UnsafeUnpin for Name
impl UnwindSafe for Name
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.