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
sourceimpl<'ns> Clone for ResolveResult<'ns>
impl<'ns> Clone for ResolveResult<'ns>
sourcefn clone(&self) -> ResolveResult<'ns>
fn clone(&self) -> ResolveResult<'ns>
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl<'ns> Debug for ResolveResult<'ns>
impl<'ns> Debug for ResolveResult<'ns>
sourceimpl<'ns> Hash for ResolveResult<'ns>
impl<'ns> Hash for ResolveResult<'ns>
sourceimpl<'ns> PartialEq<ResolveResult<'ns>> for ResolveResult<'ns>
impl<'ns> PartialEq<ResolveResult<'ns>> for ResolveResult<'ns>
sourcefn eq(&self, other: &ResolveResult<'ns>) -> bool
fn eq(&self, other: &ResolveResult<'ns>) -> bool
sourceimpl<'ns> TryFrom<ResolveResult<'ns>> for Option<Namespace<'ns>>
impl<'ns> TryFrom<ResolveResult<'ns>> for Option<Namespace<'ns>>
sourcefn 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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more