Enum quick_xml::name::ResolveResult
source · Expand description
Result of prefix resolution which creates by NsReader::resolve_attribute
,
NsReader::resolve_element
, NsReader::read_resolved_event
and
NsReader::read_resolved_event_into
methods.
Variants§
Unbound
Qualified name does not contain prefix, and resolver does not define default namespace, so name is not bound to any namespace
Bound(Namespace<'ns>)
Prefix
resolved to the specified namespace
Unknown(Vec<u8>)
Specified prefix was not found in scope
Trait Implementations§
source§impl<'ns> Clone for ResolveResult<'ns>
impl<'ns> Clone for ResolveResult<'ns>
source§fn clone(&self) -> ResolveResult<'ns>
fn clone(&self) -> ResolveResult<'ns>
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<'ns> Debug for ResolveResult<'ns>
impl<'ns> Debug for ResolveResult<'ns>
source§impl<'ns> Hash for ResolveResult<'ns>
impl<'ns> Hash for ResolveResult<'ns>
source§impl<'ns> PartialEq<ResolveResult<'ns>> for ResolveResult<'ns>
impl<'ns> PartialEq<ResolveResult<'ns>> for ResolveResult<'ns>
source§fn eq(&self, other: &ResolveResult<'ns>) -> bool
fn eq(&self, other: &ResolveResult<'ns>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<'ns> TryFrom<ResolveResult<'ns>> for Option<Namespace<'ns>>
impl<'ns> TryFrom<ResolveResult<'ns>> for Option<Namespace<'ns>>
source§fn try_from(result: ResolveResult<'ns>) -> Result<Self>
fn try_from(result: ResolveResult<'ns>) -> Result<Self>
Try to convert this result to an optional namespace and returns
Error::UnknownPrefix
if this result represents unknown prefix