Struct icu::plurals::provider::FourBitMetadata
source · pub struct FourBitMetadata(/* private fields */);
Expand description
Four bits of metadata that are stored and retrieved with the plural elements.
Implementations§
source§impl FourBitMetadata
impl FourBitMetadata
sourcepub fn try_from_byte(byte: u8) -> Option<FourBitMetadata>
pub fn try_from_byte(byte: u8) -> Option<FourBitMetadata>
Creates a FourBitMetadata
if the given value fits in 4 bits.
sourcepub fn zero() -> FourBitMetadata
pub fn zero() -> FourBitMetadata
Creates a FourBitMetadata
with a zero value.
sourcepub fn get(self) -> u8
pub fn get(self) -> u8
Gets the value out of a FourBitMetadata
.
Trait Implementations§
source§impl Clone for FourBitMetadata
impl Clone for FourBitMetadata
source§fn clone(&self) -> FourBitMetadata
fn clone(&self) -> FourBitMetadata
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 FourBitMetadata
impl Debug for FourBitMetadata
source§impl<'de> Deserialize<'de> for FourBitMetadata
impl<'de> Deserialize<'de> for FourBitMetadata
source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<FourBitMetadata, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<FourBitMetadata, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq for FourBitMetadata
impl PartialEq for FourBitMetadata
source§impl Serialize for FourBitMetadata
impl Serialize for FourBitMetadata
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
impl Copy for FourBitMetadata
impl Eq for FourBitMetadata
impl StructuralPartialEq for FourBitMetadata
Auto Trait Implementations§
impl Freeze for FourBitMetadata
impl RefUnwindSafe for FourBitMetadata
impl Send for FourBitMetadata
impl Sync for FourBitMetadata
impl Unpin for FourBitMetadata
impl UnwindSafe for FourBitMetadata
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