Struct icu::experimental::dimension::provider::currency::CurrencyPatternConfig
source · pub struct CurrencyPatternConfig {
pub short_pattern_selection: PatternSelection,
pub narrow_pattern_selection: PatternSelection,
pub short_placeholder_value: Option<PlaceholderValue>,
pub narrow_placeholder_value: Option<PlaceholderValue>,
}
Fields§
§short_pattern_selection: PatternSelection
Indicates which pattern to use for short currency formatting.
narrow_pattern_selection: PatternSelection
Indicates which pattern to use for narrow currency formatting.
short_placeholder_value: Option<PlaceholderValue>
The index of the short pattern place holder in the place holders list.
If the value is None
, this means that the short pattern does not have a place holder.
narrow_placeholder_value: Option<PlaceholderValue>
The index of the narrow pattern place holder in the place holders list.
If the value is None
, this means that the narrow pattern does not have a place holder.
Trait Implementations§
source§impl AsULE for CurrencyPatternConfig
impl AsULE for CurrencyPatternConfig
source§type ULE = CurrencyPatternConfigULE
type ULE = CurrencyPatternConfigULE
The ULE type corresponding to
Self
. Read moresource§fn to_unaligned(self) -> <CurrencyPatternConfig as AsULE>::ULE
fn to_unaligned(self) -> <CurrencyPatternConfig as AsULE>::ULE
source§fn from_unaligned(
unaligned: <CurrencyPatternConfig as AsULE>::ULE,
) -> CurrencyPatternConfig
fn from_unaligned( unaligned: <CurrencyPatternConfig as AsULE>::ULE, ) -> CurrencyPatternConfig
source§impl Bake for CurrencyPatternConfig
impl Bake for CurrencyPatternConfig
source§fn bake(&self, env: &CrateEnv) -> TokenStream
fn bake(&self, env: &CrateEnv) -> TokenStream
source§impl BakeSize for CurrencyPatternConfig
impl BakeSize for CurrencyPatternConfig
source§fn borrows_size(&self) -> usize
fn borrows_size(&self) -> usize
Returns the size
source§impl Clone for CurrencyPatternConfig
impl Clone for CurrencyPatternConfig
source§fn clone(&self) -> CurrencyPatternConfig
fn clone(&self) -> CurrencyPatternConfig
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 CurrencyPatternConfig
impl Debug for CurrencyPatternConfig
source§impl Default for CurrencyPatternConfig
impl Default for CurrencyPatternConfig
source§fn default() -> CurrencyPatternConfig
fn default() -> CurrencyPatternConfig
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for CurrencyPatternConfig
impl<'de> Deserialize<'de> for CurrencyPatternConfig
source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<CurrencyPatternConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<CurrencyPatternConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Ord for CurrencyPatternConfig
impl Ord for CurrencyPatternConfig
source§fn cmp(&self, other: &CurrencyPatternConfig) -> Ordering
fn cmp(&self, other: &CurrencyPatternConfig) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for CurrencyPatternConfig
impl PartialEq for CurrencyPatternConfig
source§impl PartialOrd for CurrencyPatternConfig
impl PartialOrd for CurrencyPatternConfig
source§impl Serialize for CurrencyPatternConfig
impl Serialize for CurrencyPatternConfig
source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
source§impl<'a> ZeroMapKV<'a> for CurrencyPatternConfig
impl<'a> ZeroMapKV<'a> for CurrencyPatternConfig
source§type Container = ZeroVec<'a, CurrencyPatternConfig>
type Container = ZeroVec<'a, CurrencyPatternConfig>
The container that can be used with this type:
ZeroVec
or VarZeroVec
.type Slice = ZeroSlice<CurrencyPatternConfig>
source§type GetType = <CurrencyPatternConfig as AsULE>::ULE
type GetType = <CurrencyPatternConfig as AsULE>::ULE
The type produced by
Container::get()
Read moresource§type OwnedType = CurrencyPatternConfig
type OwnedType = CurrencyPatternConfig
The type produced by
Container::replace()
and Container::remove()
,
also used during deserialization. If Self
is human readable serialized,
deserializing to Self::OwnedType
should produce the same value once
passed through Self::owned_as_self()
Read moreimpl Copy for CurrencyPatternConfig
impl Eq for CurrencyPatternConfig
impl StructuralPartialEq for CurrencyPatternConfig
Auto Trait Implementations§
impl Freeze for CurrencyPatternConfig
impl RefUnwindSafe for CurrencyPatternConfig
impl Send for CurrencyPatternConfig
impl Sync for CurrencyPatternConfig
impl Unpin for CurrencyPatternConfig
impl UnwindSafe for CurrencyPatternConfig
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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