[][src]Enum fluent_syntax::ast::InlineExpression

pub enum InlineExpression<'ast> {
    StringLiteral {
        raw: &'ast str,
    },
    NumberLiteral {
        value: &'ast str,
    },
    VariableReference {
        id: Identifier<'ast>,
    },
    CallExpression {
        callee: Box<InlineExpression<'ast>>,
        positional: Vec<InlineExpression<'ast>>,
        named: Vec<NamedArgument<'ast>>,
    },
    AttributeExpression {
        reference: Box<InlineExpression<'ast>>,
        name: Identifier<'ast>,
    },
    VariantExpression {
        reference: Box<InlineExpression<'ast>>,
        key: VariantKey<'ast>,
    },
    MessageReference {
        id: Identifier<'ast>,
    },
    TermReference {
        id: Identifier<'ast>,
    },
    FunctionReference {
        id: Identifier<'ast>,
    },
    Placeable {
        expression: Box<Expression<'ast>>,
    },
}

Variants

StringLiteral

Fields of StringLiteral

raw: &'ast str
NumberLiteral

Fields of NumberLiteral

value: &'ast str
VariableReference

Fields of VariableReference

id: Identifier<'ast>
CallExpression

Fields of CallExpression

callee: Box<InlineExpression<'ast>>positional: Vec<InlineExpression<'ast>>named: Vec<NamedArgument<'ast>>
AttributeExpression

Fields of AttributeExpression

reference: Box<InlineExpression<'ast>>name: Identifier<'ast>
VariantExpression

Fields of VariantExpression

reference: Box<InlineExpression<'ast>>key: VariantKey<'ast>
MessageReference

Fields of MessageReference

id: Identifier<'ast>
TermReference

Fields of TermReference

id: Identifier<'ast>
FunctionReference

Fields of FunctionReference

id: Identifier<'ast>
Placeable

Fields of Placeable

expression: Box<Expression<'ast>>

Trait Implementations

impl<'ast> PartialEq<InlineExpression<'ast>> for InlineExpression<'ast>[src]

impl<'ast> Debug for InlineExpression<'ast>[src]

Auto Trait Implementations

impl<'ast> Send for InlineExpression<'ast>

impl<'ast> Sync for InlineExpression<'ast>

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.