pub enum KeywordSyntax {
ColonPrefix,
ColonPostfix,
Octothorpe,
}Expand description
Indicates a syntax of keywords.
Variants§
ColonPrefix
Parse identifiers starting with a colon as keywords.
In the absence of this option, such identifiers would be parsed as symbols.
ColonPostfix
Parse identifiers ending with a colon as keywords.
In the absence of this option, such identifiers would be parsed as symbols.
Octothorpe
Parse identifiers prefixed with #: as keywords.
In the absence of this option, the sequence #: will result
in a parser error.
Trait Implementations§
Source§impl Clone for KeywordSyntax
impl Clone for KeywordSyntax
Source§fn clone(&self) -> KeywordSyntax
fn clone(&self) -> KeywordSyntax
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 KeywordSyntax
impl Debug for KeywordSyntax
Source§impl PartialEq for KeywordSyntax
impl PartialEq for KeywordSyntax
impl Copy for KeywordSyntax
impl StructuralPartialEq for KeywordSyntax
Auto Trait Implementations§
impl Freeze for KeywordSyntax
impl RefUnwindSafe for KeywordSyntax
impl Send for KeywordSyntax
impl Sync for KeywordSyntax
impl Unpin for KeywordSyntax
impl UnwindSafe for KeywordSyntax
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