pub enum AtomKind {
Open,
Close,
Sep(char),
Text,
}Expand description
One lexical atom of placeholder arg text. Bracket depth tracking
and top-level splitting share this single scan, so quote rules —
including """ blocks — can never disagree between the splitter
and the paren matcher.
Variants§
Open
One of ([{.
Close
One of )]}.
Sep(char)
A separator candidate (, or :); consumers decide which splits.
Text
Anything else: a maximal run that is either one quoted string
("..", '..', or a whole """..""" block with backslash
escapes honored) or unquoted text up to the next structural
character. Commas and brackets inside a quoted run never surface.
Trait Implementations§
impl Copy for AtomKind
impl Eq for AtomKind
impl StructuralPartialEq for AtomKind
Auto Trait Implementations§
impl Forget for AtomKind
impl Freeze for AtomKind
impl Move for AtomKind
impl RefUnwindSafe for AtomKind
impl Send for AtomKind
impl Sync for AtomKind
impl Unpin for AtomKind
impl UnsafeUnpin for AtomKind
impl UnwindSafe for AtomKind
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