#[non_exhaustive]pub enum UnknownEscapes {
Preserve,
Warn,
DropBackslash,
Error,
}Expand description
Handling of unrecognized double-quoted escapes.
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.
Preserve
Keep both characters literally.
Warn
Keep both characters and issue a warning.
DropBackslash
Remove the backslash only.
Error
Retain the binding but report an error.
Trait Implementations§
Source§impl Clone for UnknownEscapes
impl Clone for UnknownEscapes
impl Copy for UnknownEscapes
Source§impl Debug for UnknownEscapes
impl Debug for UnknownEscapes
impl Eq for UnknownEscapes
Source§impl Hash for UnknownEscapes
impl Hash for UnknownEscapes
Source§impl PartialEq for UnknownEscapes
impl PartialEq for UnknownEscapes
impl StructuralPartialEq for UnknownEscapes
Auto Trait Implementations§
impl Freeze for UnknownEscapes
impl RefUnwindSafe for UnknownEscapes
impl Send for UnknownEscapes
impl Sync for UnknownEscapes
impl Unpin for UnknownEscapes
impl UnsafeUnpin for UnknownEscapes
impl UnwindSafe for UnknownEscapes
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