pub struct EscapePairSpec {
pub decoded: char,
pub letter: char,
pub from_control_ladder: bool,
}Expand description
One two-char escape: the producer emits [escape_char, letter]
for decoded; the consumer’s escape dispatcher maps letter
back to decoded.
Fields§
§decoded: charThe unescaped source char ('\n').
letter: charThe escape letter following the escape introducer ('n').
from_control_ladder: booltrue when the pair comes from the control classifier’s
equality ladder (code == 8 → "\\b"), false for a
classifier literal arm ("\n" → "\\n"). Drives which
disequality form the chunk-invariant ladder cases on
(c.toNat = K vs c = '<lit>').
Trait Implementations§
Source§impl Clone for EscapePairSpec
impl Clone for EscapePairSpec
Source§fn clone(&self) -> EscapePairSpec
fn clone(&self) -> EscapePairSpec
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 EscapePairSpec
impl RefUnwindSafe for EscapePairSpec
impl Send for EscapePairSpec
impl Sync for EscapePairSpec
impl Unpin for EscapePairSpec
impl UnsafeUnpin for EscapePairSpec
impl UnwindSafe for EscapePairSpec
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