Skip to main content

NumberRangeLocale

Enum NumberRangeLocale 

Source
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 traits Into<LocaleValue>, Send, Sync, and Clone. 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§

§

MinValue(T)

Represents the minimum localized value for the range.

§Key

  • validate-number-min-value
§

MaxValue(T)

Represents the maximum localized value for the range.

§Key

  • validate-number-max-value

Trait Implementations§

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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> ErasedDestructor for T
where T: 'static,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.