pub enum Punct {
Show 35 variants
Plus,
Dash,
Asterisk,
Slash,
Equals,
LParen,
RParen,
LSquare,
RSquare,
LCurly,
RCurly,
Comma,
Semicolon,
Colon,
And,
Or,
Not,
Eq,
Ge,
Gt,
Le,
Lt,
Ne,
All,
By,
To,
With,
Exp,
Bang,
Percent,
Question,
Backtick,
Dot,
Underscore,
BangAsterisk,
}Expand description
An operator, punctuator, or reserved word.
Variants§
Plus
+.
Dash
-.
Asterisk
*.
Slash
/.
Equals
=.
LParen
(.
RParen
).
LSquare
[.
RSquare
].
LCurly
{.
RCurly
}.
Comma
,.
Semicolon
;.
Colon
:.
And
AND or &.
Or
OR or |.
Not
NOT or ~.
Eq
EQ or =.
Ge
GE or ’>=`
Gt
GT or >.
Le
LE or <=.
Lt
LT or <.
Ne
NE or ~= or <>.
All
ALL.
By
BY.
To
TO.
With
WITH.
Exp
**.
Bang
! (only appears in macros).
Percent
% (only appears in macros).
Question
? (only appears in macros).
Backtick
` (only appears in macros).
Dot
..
This represents a dot in the middle of a line by itself, where it does not end a command.
Underscore
_ (only appears in macros).
Although underscores may appear within identifiers, they can’t be the first character, so this represents an underscore found on its own.
BangAsterisk
!* (only appears in macros).
Implementations§
Trait Implementations§
impl Copy for Punct
impl Eq for Punct
impl StructuralPartialEq for Punct
Auto Trait Implementations§
impl Freeze for Punct
impl RefUnwindSafe for Punct
impl Send for Punct
impl Sync for Punct
impl Unpin for Punct
impl UnsafeUnpin for Punct
impl UnwindSafe for Punct
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<T> CustomError for T
impl<T> CustomError for T
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.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more