Struct mexprp::Expression [] [src]

pub struct Expression<N: Num> {
    pub string: String,
    pub ctx: Context<N>,
    pub term: Term<N>,
}

The main Expression struct. Contains the string that was originally requested to be parsed, the context the Expression was parsed with, and the Term the raw form was parsed as. For just the parsed version of the expression, use the Term enum.

Fields

The original string passed into this expression

Context the expression was parsed with

The term this string has been parsed as

Methods

impl<N: Num + 'static> Expression<N>
[src]

[src]

Parse a string into an expression

[src]

Parse a string into an expression with the given context

[src]

Evaluate the expression

[src]

Evaluate the expression with the given context

Trait Implementations

impl<N: Debug + Num> Debug for Expression<N>
[src]

[src]

Formats the value using the given formatter. Read more

impl<N: Num> Display for Expression<N>
[src]

[src]

Formats the value using the given formatter. Read more

impl<N: Num> From<Expression<N>> for Term<N>
[src]

[src]

Performs the conversion.

Auto Trait Implementations

impl<N> !Send for Expression<N>

impl<N> !Sync for Expression<N>