pub struct ExpandedName<'a> { /* private fields */ }Expand description
§XML Expanded Name
An ExpandedName is a LocalName together with its associated XmlNamespace. This can convert to and from a QName with a Prefix mapping.
Implementations§
Source§impl<'a> ExpandedName<'a>
impl<'a> ExpandedName<'a>
Sourcepub fn new(
local_name: LocalName<'a>,
namespace: Option<XmlNamespace<'a>>,
) -> Self
pub fn new( local_name: LocalName<'a>, namespace: Option<XmlNamespace<'a>>, ) -> Self
Creates a new ExpandedName.
Sourcepub fn into_owned(self) -> ExpandedName<'static>
pub fn into_owned(self) -> ExpandedName<'static>
Converts this ExpandedName into an owned version.
Sourcepub fn local_name(&self) -> &LocalName<'_>
pub fn local_name(&self) -> &LocalName<'_>
Returns the local name of this ExpandedName.
Sourcepub fn namespace(&self) -> Option<&XmlNamespace<'_>>
pub fn namespace(&self) -> Option<&XmlNamespace<'_>>
Returns the namespace of this ExpandedName.
Trait Implementations§
Source§impl<'a> Clone for ExpandedName<'a>
impl<'a> Clone for ExpandedName<'a>
Source§fn clone(&self) -> ExpandedName<'a>
fn clone(&self) -> ExpandedName<'a>
Returns a copy 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 ExpandedName<'a>
impl<'a> Debug for ExpandedName<'a>
Source§impl Display for ExpandedName<'_>
impl Display for ExpandedName<'_>
Source§impl<'a> Hash for ExpandedName<'a>
impl<'a> Hash for ExpandedName<'a>
Source§impl<'a> Ord for ExpandedName<'a>
impl<'a> Ord for ExpandedName<'a>
Source§fn cmp(&self, other: &ExpandedName<'a>) -> Ordering
fn cmp(&self, other: &ExpandedName<'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 ExpandedName<'a>
impl<'a> PartialEq for ExpandedName<'a>
Source§impl<'a> PartialOrd for ExpandedName<'a>
impl<'a> PartialOrd for ExpandedName<'a>
impl<'a> Eq for ExpandedName<'a>
impl<'a> StructuralPartialEq for ExpandedName<'a>
Auto Trait Implementations§
impl<'a> Freeze for ExpandedName<'a>
impl<'a> RefUnwindSafe for ExpandedName<'a>
impl<'a> Send for ExpandedName<'a>
impl<'a> Sync for ExpandedName<'a>
impl<'a> Unpin for ExpandedName<'a>
impl<'a> UnwindSafe for ExpandedName<'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