Enum quick_xml::name::ResolveResult
source · pub enum ResolveResult<'ns> {
Unbound,
Bound(Namespace<'ns>),
Unknown(Vec<u8>),
}
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 for ResolveResult<'ns>
impl<'ns> PartialEq 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
impl<'ns> Eq for ResolveResult<'ns>
impl<'ns> StructuralEq for ResolveResult<'ns>
impl<'ns> StructuralPartialEq for ResolveResult<'ns>
Auto Trait Implementations§
impl<'ns> RefUnwindSafe for ResolveResult<'ns>
impl<'ns> Send for ResolveResult<'ns>
impl<'ns> Sync for ResolveResult<'ns>
impl<'ns> Unpin for ResolveResult<'ns>
impl<'ns> UnwindSafe for ResolveResult<'ns>
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