pub enum NumberRangeLocale<T: Into<LocaleValue> + Send + Sync + Clone> {
MinValue(T),
MaxValue(T),
}Expand description
An enumeration representing a range of values with localization support.
NumberRangeLocale is a generic enum used to define a localized numerical
range. It encapsulates a minimum or maximum value that can be converted into
a locale-specific representation using the LocaleValue type.
§Type Parameters
T: A type that implements the traitsInto<LocaleValue>,Send,Sync, andClone. This allows for flexible and thread-safe representation of values that can be converted into localized formats.
§Variants
MinValue(T): Represents the minimum localized value for the range.MaxValue(T): Represents the maximum localized value for the range.
Variants§
Trait Implementations§
Source§impl<T: Into<LocaleValue> + Send + Sync + Clone> LocaleMessage for NumberRangeLocale<T>where
LocaleValue: From<T>,
impl<T: Into<LocaleValue> + Send + Sync + Clone> LocaleMessage for NumberRangeLocale<T>where
LocaleValue: From<T>,
fn get_locale_data(&self) -> Arc<LocaleData>
Auto Trait Implementations§
impl<T> Freeze for NumberRangeLocale<T>where
T: Freeze,
impl<T> RefUnwindSafe for NumberRangeLocale<T>where
T: RefUnwindSafe,
impl<T> Send for NumberRangeLocale<T>
impl<T> Sync for NumberRangeLocale<T>
impl<T> Unpin for NumberRangeLocale<T>where
T: Unpin,
impl<T> UnsafeUnpin for NumberRangeLocale<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for NumberRangeLocale<T>where
T: UnwindSafe,
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