[−][src]Enum xml_dom::level2::ext::namespaced::NamespacePrefix
This represents the prefix value as a result of either Namespaced::get_prefix
or Namespaced::resolve_prefix
.
Variants
No mapping was discovered.
A mapping was discovered for the default (no-value) prefix.
Some(String)
A mapping was discovered for the named prefix.
Methods
impl NamespacePrefix
[src]
pub fn new_some(prefix: &str) -> Self
[src]
Construct a new NamespacePrefix::Some
value with the provided prefix.
pub fn is_none(&self) -> bool
[src]
Returns true
of this is a NamespacePrefix::None
value, otherwise false
.
pub fn is_default(&self) -> bool
[src]
Returns true
of this is a NamespacePrefix::Default
value, otherwise false
.
pub fn is_some(&self) -> bool
[src]
Returns true
of this is a NamespacePrefix::Some
value, otherwise false
.
pub fn some(&self) -> Option<String>
[src]
If this is a NamespacePrefix::Some
value, return Some
with the prefix string,
otherwise None
.
Trait Implementations
impl Clone for NamespacePrefix
[src]
fn clone(&self) -> NamespacePrefix
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for NamespacePrefix
[src]
impl PartialEq<NamespacePrefix> for NamespacePrefix
[src]
fn eq(&self, other: &NamespacePrefix) -> bool
[src]
fn ne(&self, other: &NamespacePrefix) -> bool
[src]
impl StructuralPartialEq for NamespacePrefix
[src]
Auto Trait Implementations
impl RefUnwindSafe for NamespacePrefix
impl Send for NamespacePrefix
impl Sync for NamespacePrefix
impl Unpin for NamespacePrefix
impl UnwindSafe for NamespacePrefix
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,