Enum castle_tokenizer::Punctuator
source · [−]pub enum Punctuator {
Show 18 variants
Default,
Or,
Neg,
GenericOpen,
GenericClose,
Colon,
SemiColon,
Dot,
Comma,
Spread,
At,
DoubleColon,
OpenBlock,
CloseBlock,
OpenParen,
CloseParen,
OpenBracket,
CloseBracket,
}Variants
Default
Or
Neg
GenericOpen
GenericClose
Colon
SemiColon
Dot
Comma
Spread
At
DoubleColon
OpenBlock
CloseBlock
OpenParen
CloseParen
OpenBracket
CloseBracket
Implementations
Trait Implementations
sourceimpl Clone for Punctuator
impl Clone for Punctuator
sourcefn clone(&self) -> Punctuator
fn clone(&self) -> Punctuator
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for Punctuator
impl Debug for Punctuator
sourceimpl PartialEq<Punctuator> for Punctuator
impl PartialEq<Punctuator> for Punctuator
impl Copy for Punctuator
impl StructuralPartialEq for Punctuator
Auto Trait Implementations
impl RefUnwindSafe for Punctuator
impl Send for Punctuator
impl Sync for Punctuator
impl Unpin for Punctuator
impl UnwindSafe for Punctuator
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
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more