Struct icu_plurals::rules::ast::Samples[][src]

pub struct Samples {
    pub integer: Option<SampleList>,
    pub decimal: Option<SampleList>,
}

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

impl Clone for Samples[src]

impl Debug for Samples[src]

impl PartialEq<Samples> for Samples[src]

impl StructuralPartialEq for Samples[src]

Auto Trait Implementations

impl RefUnwindSafe for Samples

impl Send for Samples

impl Sync for Samples

impl Unpin for Samples

impl UnwindSafe for Samples

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> ErasedDataStruct for T where
    T: Clone + Debug + Any
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.