Enum lexpr::print::KeywordSyntax
source · 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 copy 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<KeywordSyntax> for KeywordSyntax
impl PartialEq<KeywordSyntax> for KeywordSyntax
source§fn eq(&self, other: &KeywordSyntax) -> bool
fn eq(&self, other: &KeywordSyntax) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.