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
)