Enum quick_xml::escape::ParseCharRefError
source · pub enum ParseCharRefError {
UnexpectedSign,
InvalidNumber(ParseIntError),
InvalidCodepoint(u32),
IllegalCharacter(u32),
}
Expand description
Error of parsing character reference (&#<dec-number>;
or &#x<hex-number>;
).
Variants§
UnexpectedSign
Number contains sign character (+
or -
) which is not allowed.
InvalidNumber(ParseIntError)
Number cannot be parsed due to non-number characters or a numeric overflow.
InvalidCodepoint(u32)
Character reference represents not a valid unicode codepoint.
IllegalCharacter(u32)
Character reference expanded to a not permitted character for an XML.
Currently, only 0x0
character produces this error.
Trait Implementations§
source§impl Clone for ParseCharRefError
impl Clone for ParseCharRefError
source§fn clone(&self) -> ParseCharRefError
fn clone(&self) -> ParseCharRefError
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 ParseCharRefError
impl Debug for ParseCharRefError
source§impl Display for ParseCharRefError
impl Display for ParseCharRefError
source§impl Error for ParseCharRefError
impl Error for ParseCharRefError
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 PartialEq for ParseCharRefError
impl PartialEq for ParseCharRefError
impl StructuralPartialEq for ParseCharRefError
Auto Trait Implementations§
impl Freeze for ParseCharRefError
impl RefUnwindSafe for ParseCharRefError
impl Send for ParseCharRefError
impl Sync for ParseCharRefError
impl Unpin for ParseCharRefError
impl UnwindSafe for ParseCharRefError
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
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)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)