Enum cfg_lib::config::ASTValue [−][src]
pub enum ASTValue {
TokenValue(Token),
Unary(UnaryNode),
Binary(BinaryNode),
List(Vec<ASTValue>),
Mapping(Vec<(Token, ASTValue)>),
Slice(Location, Box<Option<ASTValue>>, Box<Option<ASTValue>>, Box<Option<ASTValue>>),
}
Expand description
This represents AST nodes corresponding to fragments of CFG source.
Variants
TokenValue(Token)
This is a token in the CFG grammar.
Tuple Fields of TokenValue
0: Token
Unary(UnaryNode)
This is a unary node.
Tuple Fields of Unary
0: UnaryNode
Binary(BinaryNode)
This is a binary node.
Tuple Fields of Binary
0: BinaryNode
This is a list node.
This is a mapping node.
This is a slice node. It’s produced when parsing slices.
Tuple Fields of Slice
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for ASTValue
impl UnwindSafe for ASTValue
Blanket Implementations
Mutably borrows from an owned value. Read more