pub struct NumericSetContext<'a> { /* private fields */ }Expand description
Ordered complete semantic input and nonrecursive built-in helper.
Implementations§
Source§impl<'a> NumericSetContext<'a>
impl<'a> NumericSetContext<'a>
Sourcepub fn owner(&self) -> NumericOwner<'a>
pub fn owner(&self) -> NumericOwner<'a>
Semantic producer.
Sourcepub const fn role(&self) -> NumericRole
pub const fn role(&self) -> NumericRole
Actual consumer.
Sourcepub const fn purpose(&self) -> NumericPurpose
pub const fn purpose(&self) -> NumericPurpose
Preference versus actual source.
Sourcepub const fn values(&self) -> &'a [NumericValue<'a>]
pub const fn values(&self) -> &'a [NumericValue<'a>]
Every original occurrence, including duplicates, in source order.
Sourcepub fn domain(&self) -> Option<NumericDomain<'a>>
pub fn domain(&self) -> Option<NumericDomain<'a>>
Resolved domain when this owner has one.
Sourcepub fn locale(&self) -> &'a NumericLocale
pub fn locale(&self) -> &'a NumericLocale
Explicit selected locale.
Sourcepub fn common_factors(&self) -> Option<NumericFactors<'a>>
pub fn common_factors(&self) -> Option<NumericFactors<'a>>
Common resolved factor/affix only when every member agrees.
Sourcepub fn format_builtin(&self) -> Result<NumericLabels, Error>
pub fn format_builtin(&self) -> Result<NumericLabels, Error>
Built-in conversion of this same complete set, bypassing only the function.
Trait Implementations§
Source§impl<'a> Clone for NumericSetContext<'a>
impl<'a> Clone for NumericSetContext<'a>
Source§fn clone(&self) -> NumericSetContext<'a>
fn clone(&self) -> NumericSetContext<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<'a> !RefUnwindSafe for NumericSetContext<'a>
impl<'a> !Send for NumericSetContext<'a>
impl<'a> !Sync for NumericSetContext<'a>
impl<'a> !UnwindSafe for NumericSetContext<'a>
impl<'a> Forget for NumericSetContext<'a>
impl<'a> Freeze for NumericSetContext<'a>
impl<'a> Move for NumericSetContext<'a>
impl<'a> Unpin for NumericSetContext<'a>
impl<'a> UnsafeUnpin for NumericSetContext<'a>
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.