Struct sxd_document::PrefixedName
source · 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 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 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<PrefixedName<'a>> for PrefixedName<'a>
impl<'a> PartialEq<PrefixedName<'a>> for PrefixedName<'a>
source§fn eq(&self, other: &PrefixedName<'a>) -> bool
fn eq(&self, other: &PrefixedName<'a>) -> bool
source§impl<'a> PartialOrd<PrefixedName<'a>> for PrefixedName<'a>
impl<'a> PartialOrd<PrefixedName<'a>> for PrefixedName<'a>
source§fn partial_cmp(&self, other: &PrefixedName<'a>) -> Option<Ordering>
fn partial_cmp(&self, other: &PrefixedName<'a>) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more