pub enum Escapes {
None,
Quotes,
Standard,
}Expand description
How a string or character literal’s escapes are decoded.
§Examples
use lower_lang::Escapes;
assert_ne!(Escapes::None, Escapes::Standard);Variants§
None
Raw: the text between the quotes, unchanged.
Quotes
Only \\ and an escaped quote (PHP single-quoted strings).
Standard
\n \r \t \0 \\ \' \" \$ \xHH \u{H..}; any other escape is reported
and kept as written.
Trait Implementations§
impl Copy for Escapes
impl Eq for Escapes
impl StructuralPartialEq for Escapes
Auto Trait Implementations§
impl Freeze for Escapes
impl RefUnwindSafe for Escapes
impl Send for Escapes
impl Sync for Escapes
impl Unpin for Escapes
impl UnsafeUnpin for Escapes
impl UnwindSafe for Escapes
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