Struct icu_plurals::rules::ast::Expression [−][src]
An incomplete AST representation of a plural rule. Comprises an Operand
and an optional modulo.
Examples
All AST nodes can be built explicitly, as seen in the example. However, due to its complexity, it is preferred to build the
AST using the parse()
function.
"i % 100"
Can be represented by the AST:
use icu::plurals::rules::ast::*; Expression { operand: Operand::I, modulus: Some(Value(100)), };
Fields
operand: Operand
modulus: Option<Value>
Trait Implementations
impl Clone for Expression
[src]
impl Clone for Expression
[src]fn clone(&self) -> Expression
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl PartialEq<Expression> for Expression
[src]
impl PartialEq<Expression> for Expression
[src]fn eq(&self, other: &Expression) -> bool
[src]
fn ne(&self, other: &Expression) -> bool
[src]
impl StructuralPartialEq for Expression
[src]
impl StructuralPartialEq for Expression
[src]Auto Trait Implementations
impl RefUnwindSafe for Expression
impl RefUnwindSafe for Expression
impl Send for Expression
impl Send for Expression
impl Sync for Expression
impl Sync for Expression
impl Unpin for Expression
impl Unpin for Expression
impl UnwindSafe for Expression
impl UnwindSafe for Expression