Struct cldr_pluralrules_parser::ast::RangeList
source · pub struct RangeList(pub Vec<RangeListItem>);
Expand description
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_plural_rule function.
"5, 7, 9"
Can be represented by the AST:
use cldr_pluralrules_parser::ast::*;
RangeList(vec![
RangeListItem::Value(Value(5)),
RangeListItem::Value(Value(7)),
RangeListItem::Value(Value(9)),
]);
Tuple Fields
0: Vec<RangeListItem>
Trait Implementations
impl StructuralPartialEq for RangeList
Auto Trait Implementations
impl RefUnwindSafe for RangeList
impl Send for RangeList
impl Sync for RangeList
impl Unpin for RangeList
impl UnwindSafe for RangeList
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more