Enum icu::plurals::rules::ast::Operand[][src]

pub enum Operand {
    N,
    I,
    V,
    W,
    F,
    T,
    C,
    E,
}

An incomplete AST representation of a plural rule. Comprises a char.

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"

Can be represented by the AST:

use icu::plurals::rules::ast::Operand;

Operand::I;

Variants

N

Absolute value of input

I

An integer value of input with the fraction part truncated off

V

Number of visible fraction digits with trailing zeros

W

Number of visible fraction digits without trailing zeros

F

Visible fraction digits with trailing zeros

T

Visible fraction digits without trailing zeros

C

Compact decimal exponent value: exponent of the power of 10 used in compact decimal formatting

E

Currently, synonym for ‘c’. however, may be redefined in the future

Trait Implementations

impl Clone for Operand[src]

impl Copy for Operand[src]

impl Debug for Operand[src]

impl PartialEq<Operand> for Operand[src]

impl StructuralPartialEq for Operand[src]

Auto Trait Implementations

impl RefUnwindSafe for Operand

impl Send for Operand

impl Sync for Operand

impl Unpin for Operand

impl UnwindSafe for Operand

Blanket Implementations

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

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

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

impl<T> ErasedDataStruct for T where
    T: Clone + Debug + Any

impl<T> From<T> for T[src]

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.