pub struct SampleRange {
pub lower_val: DecimalValue,
pub upper_val: Option<DecimalValue>,
}Expand description
A value range used in samples.
๐ง This code is considered unstable; it may change at any time, in breaking or non-breaking ways,
including in SemVer minor releases. In particular, the `DataProvider` implementations are only
guaranteed to match with this version's `*_unstable` providers. Use with caution.
ยงExamples
0.0~1.5use icu::plurals::provider::rules::reference::ast::*;
SampleRange {
lower_val: DecimalValue("0.0".to_string()),
upper_val: Some(DecimalValue("1.5".to_string())),
};Fieldsยง
ยงlower_val: DecimalValueWhen upper_val is None, this field represents a single sample value that satisfies
the associated plural rule. When upper_val is Some, this field represents the lower
bound of an interval (and is included in the interval) whose values all satisfy the rule.
upper_val: Option<DecimalValue>When this SampleRange represents an interval of values, this field represents the upper
bound of the interval (and is included in the interval). Otherwise, this field is None.
Trait Implementationsยง
Sourceยงimpl Clone for SampleRange
impl Clone for SampleRange
Sourceยงfn clone(&self) -> SampleRange
fn clone(&self) -> SampleRange
Returns a copy of the value. Read more
1.0.0 ยท Sourceยงfn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSourceยงimpl Debug for SampleRange
impl Debug for SampleRange
Sourceยงimpl PartialEq for SampleRange
impl PartialEq for SampleRange
impl StructuralPartialEq for SampleRange
Auto Trait Implementationsยง
impl Freeze for SampleRange
impl RefUnwindSafe for SampleRange
impl Send for SampleRange
impl Sync for SampleRange
impl Unpin for SampleRange
impl UnwindSafe for SampleRange
Blanket Implementationsยง
Sourceยงimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Sourceยงfn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Sourceยงimpl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Sourceยงimpl<T> IntoEither for T
impl<T> IntoEither for T
Sourceยงfn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSourceยงfn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more