pub struct SampleList {
pub sample_ranges: Vec<SampleRange>,
pub ellipsis: bool,
}
Expand description
A list of values 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.5, …
use icu::plurals::provider::rules::reference::ast::*;
SampleList {
sample_ranges: vec![SampleRange {
lower_val: DecimalValue("0.0".to_string()),
upper_val: Some(DecimalValue("1.5".to_string())),
}],
ellipsis: true,
};
Fields§
§sample_ranges: Vec<SampleRange>
A collection of intervals in which all of the contained values (inclusive of the interval boundaries) satisfy the associated rule.
ellipsis: bool
Indicates the presence of U+2026 HORIZONTAL ELLIPSIS at the end of sample string, which represents whether an infinite set of values satisfies the rule or not.
Trait Implementations§
Source§impl Clone for SampleList
impl Clone for SampleList
Source§fn clone(&self) -> SampleList
fn clone(&self) -> SampleList
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 SampleList
impl Debug for SampleList
Source§impl PartialEq for SampleList
impl PartialEq for SampleList
impl StructuralPartialEq for SampleList
Auto Trait Implementations§
impl Freeze for SampleList
impl RefUnwindSafe for SampleList
impl Send for SampleList
impl Sync for SampleList
impl Unpin for SampleList
impl UnwindSafe for SampleList
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