Enum quick_xml::escape::EscapeError
source · pub enum EscapeError {
EntityWithNull(Range<usize>),
UnrecognizedSymbol(Range<usize>, String),
UnterminatedEntity(Range<usize>),
TooLongHexadecimal,
InvalidHexadecimal(char),
TooLongDecimal,
InvalidDecimal(char),
InvalidCodepoint(u32),
}
Expand description
Error for XML escape / unescape.
Variants§
EntityWithNull(Range<usize>)
Entity with Null character
UnrecognizedSymbol(Range<usize>, String)
Unrecognized escape symbol
UnterminatedEntity(Range<usize>)
Cannot find ;
after &
TooLongHexadecimal
Cannot convert Hexa to utf8
InvalidHexadecimal(char)
Character is not a valid hexadecimal value
TooLongDecimal
Cannot convert decimal to hexa
InvalidDecimal(char)
Character is not a valid decimal value
InvalidCodepoint(u32)
Not a valid unicode codepoint
Trait Implementations§
source§impl Clone for EscapeError
impl Clone for EscapeError
source§fn clone(&self) -> EscapeError
fn clone(&self) -> EscapeError
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 EscapeError
impl Debug for EscapeError
source§impl Display for EscapeError
impl Display for EscapeError
source§impl Error for EscapeError
impl Error for EscapeError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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<EscapeError> for Error
impl From<EscapeError> for Error
source§fn from(error: EscapeError) -> Error
fn from(error: EscapeError) -> Error
Creates a new Error::EscapeError
from the given error