pub enum IllegalUnicodeProtocol {
Discard,
Error,
ReplacementCharacter,
Replace(char),
}Expand description
How to handle parsing an invalid Unicode hexadecimal escape. This also applies to the escapes of a surrogate pair when surrogate pairs are not allowed.
Variants§
Discard
Just discard.
Error
Generate an error.
ReplacementCharacter
Replace with the replacement character, U+FFFD.
Replace(char)
Substitute the given character.
Trait Implementations§
Source§impl Clone for IllegalUnicodeProtocol
impl Clone for IllegalUnicodeProtocol
Source§fn clone(&self) -> IllegalUnicodeProtocol
fn clone(&self) -> IllegalUnicodeProtocol
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for IllegalUnicodeProtocol
impl RefUnwindSafe for IllegalUnicodeProtocol
impl Send for IllegalUnicodeProtocol
impl Sync for IllegalUnicodeProtocol
impl Unpin for IllegalUnicodeProtocol
impl UnwindSafe for IllegalUnicodeProtocol
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