Struct cldr_pluralrules_parser::ast::Range
source · Expand description
An incomplete AST representation of a plural rule. Comprises two Values: an inclusive lower and upper limit.
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.
"11..15"
Can be represented by the AST:
use cldr_pluralrules_parser::ast::*;
RangeListItem::Range(Range {
lower_val: Value(11),
upper_val: Value(15),
});
Fields
lower_val: Value
upper_val: Value
Trait Implementations
impl StructuralPartialEq for Range
Auto Trait Implementations
impl RefUnwindSafe for Range
impl Send for Range
impl Sync for Range
impl Unpin for Range
impl UnwindSafe for Range
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