Struct icu_plurals::rules::ast::RangeList [−][src]
pub struct RangeList(pub Box<[RangeListItem]>);
An incomplete AST representation of a plural rule. Comprises a vector of RangeListItems
.
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.
"5, 7, 9"
Can be represented by the AST:
use icu::plurals::rules::ast::*; RangeList(Box::new([ RangeListItem::Value(Value(5)), RangeListItem::Value(Value(7)), RangeListItem::Value(Value(9)), ]));
Trait Implementations
impl StructuralPartialEq for RangeList
[src]
impl StructuralPartialEq for RangeList
[src]Auto Trait Implementations
impl RefUnwindSafe for RangeList
impl RefUnwindSafe for RangeList
impl UnwindSafe for RangeList
impl UnwindSafe for RangeList