#[non_exhaustive]pub enum InvalidXmlNameError {
InvalidStartChar,
InvalidChar {
index: usize,
character: char,
},
Empty,
}
Expand description
An error that occurs when a name is invalid.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
InvalidStartChar
The name starts with an invalid character. The first character of an XML name is special and excludes some other characters incl “-” which is allowed in the middle of the name.
InvalidChar
The name contains an invalid character.
Empty
The name is empty.
Trait Implementations§
Source§impl Clone for InvalidXmlNameError
impl Clone for InvalidXmlNameError
Source§fn clone(&self) -> InvalidXmlNameError
fn clone(&self) -> InvalidXmlNameError
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 Debug for InvalidXmlNameError
impl Debug for InvalidXmlNameError
Source§impl Display for InvalidXmlNameError
impl Display for InvalidXmlNameError
Source§impl Error for InvalidXmlNameError
impl Error for InvalidXmlNameError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<InvalidXmlNameError> for LocalNameParseError
impl From<InvalidXmlNameError> for LocalNameParseError
Source§fn from(source: InvalidXmlNameError) -> Self
fn from(source: InvalidXmlNameError) -> Self
Converts to this type from the input type.
Source§impl From<InvalidXmlNameError> for PrefixParseError
impl From<InvalidXmlNameError> for PrefixParseError
Source§fn from(source: InvalidXmlNameError) -> Self
fn from(source: InvalidXmlNameError) -> Self
Converts to this type from the input type.
Source§impl Hash for InvalidXmlNameError
impl Hash for InvalidXmlNameError
Source§impl Ord for InvalidXmlNameError
impl Ord for InvalidXmlNameError
Source§fn cmp(&self, other: &InvalidXmlNameError) -> Ordering
fn cmp(&self, other: &InvalidXmlNameError) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for InvalidXmlNameError
impl PartialEq for InvalidXmlNameError
Source§impl PartialOrd for InvalidXmlNameError
impl PartialOrd for InvalidXmlNameError
impl Eq for InvalidXmlNameError
impl StructuralPartialEq for InvalidXmlNameError
Auto Trait Implementations§
impl Freeze for InvalidXmlNameError
impl RefUnwindSafe for InvalidXmlNameError
impl Send for InvalidXmlNameError
impl Sync for InvalidXmlNameError
impl Unpin for InvalidXmlNameError
impl UnwindSafe for InvalidXmlNameError
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