pub enum TerminalKind {
Show 64 variants
NewLine,
Whitespace,
LineComment,
BlockComment,
Hash,
MapBind,
Integer,
Float,
Inf,
NaN,
True,
False,
Null,
Hole,
Str,
LitStr,
Text,
InlineCode1,
LitStr3Start,
LitStr2Start,
LitStr1Start,
DelimCodeStart3,
DelimCodeStart2,
DelimCodeStart1,
CodeBlockStart3,
CodeBlockStart4,
CodeBlockStart5,
CodeBlockStart6,
CodeBlockEnd3,
Backtick2,
CodeBlockEnd4,
Backtick3,
CodeBlockEnd5,
Backtick4,
CodeBlockEnd6,
Backtick5,
NoBacktick,
LitStr3End,
LitStr2End,
LitStr1End,
SQuote,
NoSQuote,
DelimCodeEnd3,
DelimCodeEnd2,
DelimCodeEnd1,
BacktickDelim,
GrammarNewline,
Ws,
At,
Dollar,
Dot,
LBrace,
RBrace,
LBracket,
RBracket,
LParen,
RParen,
NewlineBind,
Bind,
Comma,
Esc,
NewlineTextStart,
TextStart,
Ident,
}Variants§
NewLine
Whitespace
LineComment
BlockComment
Hash
MapBind
Integer
Float
Inf
NaN
True
False
Null
Hole
Str
LitStr
Text
InlineCode1
LitStr3Start
LitStr2Start
LitStr1Start
DelimCodeStart3
DelimCodeStart2
DelimCodeStart1
CodeBlockStart3
CodeBlockStart4
CodeBlockStart5
CodeBlockStart6
CodeBlockEnd3
Backtick2
CodeBlockEnd4
Backtick3
CodeBlockEnd5
Backtick4
CodeBlockEnd6
Backtick5
NoBacktick
LitStr3End
LitStr2End
LitStr1End
SQuote
NoSQuote
DelimCodeEnd3
DelimCodeEnd2
DelimCodeEnd1
BacktickDelim
GrammarNewline
Ws
At
Dollar
Dot
LBrace
RBrace
LBracket
RBracket
LParen
RParen
NewlineBind
Bind
Comma
Esc
NewlineTextStart
TextStart
Ident
Implementations§
Source§impl TerminalKind
impl TerminalKind
pub fn from_terminal_index(index: u16) -> Self
pub fn is_builtin_terminal(&self) -> bool
pub fn is_builtin_new_line(&self) -> bool
pub fn is_builtin_whitespace(&self) -> bool
pub fn is_builtin_line_comment(&self) -> bool
pub fn is_builtin_block_comment(&self) -> bool
Trait Implementations§
Source§impl Clone for TerminalKind
impl Clone for TerminalKind
Source§fn clone(&self) -> TerminalKind
fn clone(&self) -> TerminalKind
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TerminalKind
impl Debug for TerminalKind
Source§impl Display for TerminalKind
impl Display for TerminalKind
Source§impl Hash for TerminalKind
impl Hash for TerminalKind
Source§impl Ord for TerminalKind
impl Ord for TerminalKind
Source§fn cmp(&self, other: &TerminalKind) -> Ordering
fn cmp(&self, other: &TerminalKind) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for TerminalKind
impl PartialEq for TerminalKind
Source§impl PartialOrd for TerminalKind
impl PartialOrd for TerminalKind
impl Copy for TerminalKind
impl Eq for TerminalKind
impl StructuralPartialEq for TerminalKind
Auto Trait Implementations§
impl Freeze for TerminalKind
impl RefUnwindSafe for TerminalKind
impl Send for TerminalKind
impl Sync for TerminalKind
impl Unpin for TerminalKind
impl UnwindSafe for TerminalKind
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