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

pub struct SampleRange {
    pub lower_val: DecimalValue,
    pub upper_val: Option<DecimalValue>,
}

A value range used in samples.

Examples

0.0~1.5
use icu::plurals::rules::ast::*;
SampleRange {
    lower_val: DecimalValue("0.0".to_string()),
    upper_val: Some(DecimalValue("1.5".to_string())),
};

Fields

lower_val: DecimalValueupper_val: Option<DecimalValue>

Trait Implementations

impl Clone for SampleRange[src]

impl Debug for SampleRange[src]

impl PartialEq<SampleRange> for SampleRange[src]

impl StructuralPartialEq for SampleRange[src]

Auto Trait Implementations

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.