Struct icu_plurals::rules::ast::Samples [−][src]
pub struct Samples { pub integer: Option<SampleList>, pub decimal: Option<SampleList>, }
Expand description
A sample of example values that match the given rule.
Examples
@integer 2, … @decimal 2.5
use icu::plurals::rules::ast::*; Samples { integer: Some(SampleList { sample_ranges: Box::new([SampleRange { lower_val: DecimalValue("2".to_string()), upper_val: None, }]), ellipsis: true }), decimal: Some(SampleList { sample_ranges: Box::new([SampleRange { lower_val: DecimalValue("2.5".to_string()), upper_val: None, }]), ellipsis: false }), };
Fields
integer: Option<SampleList>
decimal: Option<SampleList>
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Samples
impl UnwindSafe for Samples
Blanket Implementations
Mutably borrows from an owned value. Read more
Clone this trait object reference, returning a boxed trait object.