pub struct QName { /* private fields */ }
Expand description
An XML QName is contained by the Token::ElementStart
, Token::ElementEnd
and
Token::AttributeName
variants.
See the “Namespaces in XML 1.1” specification for details.
Implementations§
Source§impl QName
impl QName
Sourcepub fn get_prefix_as_str(&self) -> Option<&str>
pub fn get_prefix_as_str(&self) -> Option<&str>
Returns the qname prefix as a &str
.
Sourcepub fn get_local_part_as_str(&self) -> &str
pub fn get_local_part_as_str(&self) -> &str
Returns the qname local_part as a &str
.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for QName
impl RefUnwindSafe for QName
impl Send for QName
impl Sync for QName
impl Unpin 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