Enum fluent_syntax::ast::Expression [−][src]
pub enum Expression {
StringExpression {
value: String,
},
NumberExpression {
value: Number,
},
MessageReference {
id: Identifier,
},
ExternalArgument {
id: Identifier,
},
SelectExpression {
expression: Option<Box<Expression>>,
variants: Vec<Variant>,
},
AttributeExpression {
id: Identifier,
name: Identifier,
},
VariantExpression {
id: Identifier,
key: VarKey,
},
CallExpression {
callee: Function,
args: Vec<Argument>,
},
}Variants
StringExpressionFields of StringExpression
value: String |
NumberExpressionFields of NumberExpression
value: Number |
MessageReferenceFields of MessageReference
id: Identifier |
ExternalArgumentFields of ExternalArgument
id: Identifier |
SelectExpressionFields of SelectExpression
expression: Option<Box<Expression>> | |
variants: Vec<Variant> |
AttributeExpressionFields of AttributeExpression
id: Identifier | |
name: Identifier |
VariantExpressionFields of VariantExpression
id: Identifier | |
key: VarKey |
CallExpressionFields of CallExpression
callee: Function | |
args: Vec<Argument> |
Trait Implementations
impl Debug for Expression[src]
impl Debug for Expressionfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl PartialEq for Expression[src]
impl PartialEq for Expressionfn eq(&self, other: &Expression) -> bool[src]
fn eq(&self, other: &Expression) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Expression) -> bool[src]
fn ne(&self, other: &Expression) -> boolThis method tests for !=.
Auto Trait Implementations
impl Send for Expression
impl Send for Expressionimpl Sync for Expression
impl Sync for Expression