Struct icu::experimental::dimension::provider::ule::CurrencyPatternConfigULE
source · pub struct CurrencyPatternConfigULE(/* private fields */);
Expand description
CurrencyPatternConfigULE
is a type optimized for efficient storing and
deserialization of CurrencyPatternConfig
using the ZeroVec
model.
The serialization model packages the pattern item in three bytes.
The first bit (b7) is used to determine the short_pattern_selection. If the bit is 0
, then, the value will be Standard
.
If the bit is 1
, then, the value will be StandardAlphaNextToNumber
.
The second bit (b6) is used to determine the narrow_pattern_selection. If the bit is 0
, then, the value will be Standard
.
If the bit is 1
, then, the value will be StandardAlphaNextToNumber
.
The next three bits (b5, b4 & b3) with the second byte is used to determine the short_placeholder_value. The next three bits (b2, b1 & b0) with the third byte is used to determine the narrow_placeholder_value.
Trait Implementations§
source§impl Clone for CurrencyPatternConfigULE
impl Clone for CurrencyPatternConfigULE
source§fn clone(&self) -> CurrencyPatternConfigULE
fn clone(&self) -> CurrencyPatternConfigULE
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CurrencyPatternConfigULE
impl Debug for CurrencyPatternConfigULE
source§impl PartialEq for CurrencyPatternConfigULE
impl PartialEq for CurrencyPatternConfigULE
source§impl ULE for CurrencyPatternConfigULE
impl ULE for CurrencyPatternConfigULE
source§fn validate_byte_slice(bytes: &[u8]) -> Result<(), UleError>
fn validate_byte_slice(bytes: &[u8]) -> Result<(), UleError>
&[u8]
. Read moresource§unsafe fn from_byte_slice_unchecked(bytes: &[u8]) -> &[Self]
unsafe fn from_byte_slice_unchecked(bytes: &[u8]) -> &[Self]
&[u8]
, and return it as &[Self]
with the same lifetime, assuming
that this byte slice has previously been run through Self::parse_byte_slice()
with
success. Read moreimpl Copy for CurrencyPatternConfigULE
impl StructuralPartialEq for CurrencyPatternConfigULE
Auto Trait Implementations§
impl Freeze for CurrencyPatternConfigULE
impl RefUnwindSafe for CurrencyPatternConfigULE
impl Send for CurrencyPatternConfigULE
impl Sync for CurrencyPatternConfigULE
impl Unpin for CurrencyPatternConfigULE
impl UnwindSafe for CurrencyPatternConfigULE
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
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)
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>
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>
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