pub struct PrefixedName<'a> { /* private fields */ }Expand description
A prefixed name. This represents what is found in the string form of an XML document, and does not apply any namespace mapping.
Implementations§
Source§impl<'a> PrefixedName<'a>
impl<'a> PrefixedName<'a>
Sourcepub fn new(local_part: &str) -> PrefixedName<'_>
pub fn new(local_part: &str) -> PrefixedName<'_>
Create a PrefixedName without a prefix
Sourcepub fn with_prefix(
prefix: Option<&'a str>,
local_part: &'a str,
) -> PrefixedName<'a>
pub fn with_prefix( prefix: Option<&'a str>, local_part: &'a str, ) -> PrefixedName<'a>
Create a PrefixedName without an optional prefix
pub fn prefix(&self) -> Option<&str>
pub fn local_part(&self) -> &str
Trait Implementations§
Source§impl<'a> Clone for PrefixedName<'a>
impl<'a> Clone for PrefixedName<'a>
Source§fn clone(&self) -> PrefixedName<'a>
fn clone(&self) -> PrefixedName<'a>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> Debug for PrefixedName<'a>
impl<'a> Debug for PrefixedName<'a>
Source§impl<'a> Ord for PrefixedName<'a>
impl<'a> Ord for PrefixedName<'a>
Source§fn cmp(&self, other: &PrefixedName<'a>) -> Ordering
fn cmp(&self, other: &PrefixedName<'a>) -> Ordering
1.21.0 · 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
Source§impl<'a> PartialEq for PrefixedName<'a>
impl<'a> PartialEq for PrefixedName<'a>
Source§impl<'a> PartialOrd for PrefixedName<'a>
impl<'a> PartialOrd for PrefixedName<'a>
impl<'a> Copy for PrefixedName<'a>
impl<'a> Eq for PrefixedName<'a>
impl<'a> StructuralPartialEq for PrefixedName<'a>
Auto Trait Implementations§
impl<'a> Freeze for PrefixedName<'a>
impl<'a> RefUnwindSafe for PrefixedName<'a>
impl<'a> Send for PrefixedName<'a>
impl<'a> Sync for PrefixedName<'a>
impl<'a> Unpin for PrefixedName<'a>
impl<'a> UnwindSafe for PrefixedName<'a>
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