pub enum TokenKind {
}Expand description
Token classes.
Variants§
Word(RawWord)
A structured word.
Pipe
|.
Semicolon
;.
DoubleSemicolon
;;, which ends one case clause.
Newline
A line break.
AndAnd
&&.
OrOr
||.
Ampersand
&. Kept as a token so the parser can hard-fail on backgrounding.
LeftParen
(.
RightParen
).
LeftBrace
{ used as a reserved word.
RightBrace
} used as a reserved word.
Great
>.
GreatGreat
>>.
Less
<. Kept so the parser can explain that there are no files to read.
HereDoc(RawWord)
A <<DELIM here-document, with its body already collected off the following lines.
LessParen
<(. Kept so the parser can reject process substitution by name.
Trait Implementations§
impl Eq for TokenKind
impl StructuralPartialEq for TokenKind
Auto Trait Implementations§
impl Freeze for TokenKind
impl RefUnwindSafe for TokenKind
impl Send for TokenKind
impl Sync for TokenKind
impl Unpin for TokenKind
impl UnsafeUnpin for TokenKind
impl UnwindSafe for TokenKind
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.