pub enum Operator {
Show 22 variants
Newline,
And,
AndAnd,
OpenParen,
CloseParen,
Semicolon,
SemicolonSemicolon,
Less,
LessAnd,
LessOpenParen,
LessLess,
LessLessDash,
LessLessLess,
LessGreater,
Greater,
GreaterAnd,
GreaterOpenParen,
GreaterGreater,
GreaterGreaterBar,
GreaterBar,
Bar,
BarBar,
}Expand description
Operator token identifier.
Variants
Newline
Newline
And
&
AndAnd
&&
OpenParen
(
CloseParen
)
Semicolon
;
SemicolonSemicolon
;;
Less
<
LessAnd
<&
LessOpenParen
<(
LessLess
<<
LessLessDash
<<-
LessLessLess
<<<
LessGreater
<>
Greater
>
GreaterAnd
>&
GreaterOpenParen
>(
GreaterGreater
>>
GreaterGreaterBar
>>|
GreaterBar
>|
Bar
|
BarBar
||
Implementations
sourceimpl Operator
impl Operator
sourcepub fn is_clause_delimiter(self) -> bool
pub fn is_clause_delimiter(self) -> bool
Determines if this token can be a delimiter of a clause.
This function returns true for CloseParen and SemicolonSemicolon,
and false for others.
Trait Implementations
impl Copy for Operator
impl Eq for Operator
impl StructuralEq for Operator
impl StructuralPartialEq for Operator
Auto Trait Implementations
impl RefUnwindSafe for Operator
impl Send for Operator
impl Sync for Operator
impl Unpin for Operator
impl UnwindSafe for Operator
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more