pub enum NamespaceError {
UnknownPrefix(Vec<u8>),
InvalidXmlPrefixBind(Vec<u8>),
InvalidXmlnsPrefixBind(Vec<u8>),
InvalidPrefixForXml(Vec<u8>),
InvalidPrefixForXmlns(Vec<u8>),
}
Expand description
Some namespace was invalid
Variants§
UnknownPrefix(Vec<u8>)
Specified namespace prefix is unknown, cannot resolve namespace for it
InvalidXmlPrefixBind(Vec<u8>)
Attempts to bind the xml
prefix to something other than http://www.w3.org/XML/1998/namespace
.
xml
prefix can be bound only to http://www.w3.org/XML/1998/namespace
.
Contains the namespace to which xml
tried to be bound.
InvalidXmlnsPrefixBind(Vec<u8>)
Attempts to bind the xmlns
prefix.
xmlns
prefix is always bound to http://www.w3.org/2000/xmlns/
and cannot be bound
to any other namespace or even to http://www.w3.org/2000/xmlns/
.
Contains the namespace to which xmlns
tried to be bound.
InvalidPrefixForXml(Vec<u8>)
Attempts to bind some prefix (except xml
) to http://www.w3.org/XML/1998/namespace
.
Only xml
prefix can be bound to http://www.w3.org/XML/1998/namespace
.
Contains the prefix that is tried to be bound.
InvalidPrefixForXmlns(Vec<u8>)
Attempts to bind some prefix to http://www.w3.org/2000/xmlns/
.
http://www.w3.org/2000/xmlns/
cannot be bound to any prefix, even to xmlns
.
Contains the prefix that is tried to be bound.
Trait Implementations§
Source§impl Clone for NamespaceError
impl Clone for NamespaceError
Source§fn clone(&self) -> NamespaceError
fn clone(&self) -> NamespaceError
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for NamespaceError
impl Debug for NamespaceError
Source§impl Display for NamespaceError
impl Display for NamespaceError
Source§impl Error for NamespaceError
impl Error for NamespaceError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
Source§impl From<NamespaceError> for Error
impl From<NamespaceError> for Error
Source§fn from(error: NamespaceError) -> Self
fn from(error: NamespaceError) -> Self
Source§impl PartialEq for NamespaceError
impl PartialEq for NamespaceError
impl Eq for NamespaceError
impl StructuralPartialEq for NamespaceError
Auto Trait Implementations§
impl Freeze for NamespaceError
impl RefUnwindSafe for NamespaceError
impl Send for NamespaceError
impl Sync for NamespaceError
impl Unpin for NamespaceError
impl UnwindSafe for NamespaceError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)