Enum icu_plurals::rules::ast::RangeListItem [−][src]
pub enum RangeListItem { Range(RangeInclusive<Value>), Value(Value), }
An enum of items that appear in a RangeList
: Range
or a Value
.
See RangeInclusive
and Value
for additional details.
A range comprises two values: an inclusive lower and upper limit.
Examples
5
11..15
Can be represented by the AST:
use icu::plurals::rules::ast::*; let _ = RangeListItem::Value(Value(5)); let _ = RangeListItem::Range(Value(11)..=Value(15));
Variants
Range(RangeInclusive<Value>)
Value(Value)
Trait Implementations
impl Clone for RangeListItem
[src]
impl Clone for RangeListItem
[src]fn clone(&self) -> RangeListItem
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl PartialEq<RangeListItem> for RangeListItem
[src]
impl PartialEq<RangeListItem> for RangeListItem
[src]fn eq(&self, other: &RangeListItem) -> bool
[src]
fn ne(&self, other: &RangeListItem) -> bool
[src]
impl StructuralPartialEq for RangeListItem
[src]
impl StructuralPartialEq for RangeListItem
[src]Auto Trait Implementations
impl RefUnwindSafe for RangeListItem
impl RefUnwindSafe for RangeListItem
impl Send for RangeListItem
impl Send for RangeListItem
impl Sync for RangeListItem
impl Sync for RangeListItem
impl Unpin for RangeListItem
impl Unpin for RangeListItem
impl UnwindSafe for RangeListItem
impl UnwindSafe for RangeListItem