Struct icu::plurals::provider::UnvalidatedPluralRange
source ยท pub struct UnvalidatedPluralRange(pub u8);
Expand description
An u8
that is expected to be a plural range, but does not enforce this invariant.
๐ง This code is considered unstable; it may change at any time, in breaking or non-breaking ways,
including in SemVer minor releases. While the serde representation of data structs is guaranteed
to be stable, their Rust representation might not be. Use with caution.
Tuple Fieldsยง
ยง0: u8
Implementationsยง
sourceยงimpl UnvalidatedPluralRange
impl UnvalidatedPluralRange
sourcepub fn from_range(
start: RawPluralCategory,
end: RawPluralCategory,
) -> UnvalidatedPluralRange
pub fn from_range( start: RawPluralCategory, end: RawPluralCategory, ) -> UnvalidatedPluralRange
Creates a new UnvalidatedPluralRange
from a category range.
Trait Implementationsยง
sourceยงimpl AsULE for UnvalidatedPluralRange
impl AsULE for UnvalidatedPluralRange
sourceยงtype ULE = UnvalidatedPluralRangeULE
type ULE = UnvalidatedPluralRangeULE
The ULE type corresponding to
Self
. Read moresourceยงfn to_unaligned(self) -> <UnvalidatedPluralRange as AsULE>::ULE
fn to_unaligned(self) -> <UnvalidatedPluralRange as AsULE>::ULE
sourceยงfn from_unaligned(
unaligned: <UnvalidatedPluralRange as AsULE>::ULE,
) -> UnvalidatedPluralRange
fn from_unaligned( unaligned: <UnvalidatedPluralRange as AsULE>::ULE, ) -> UnvalidatedPluralRange
sourceยงimpl Bake for UnvalidatedPluralRange
impl Bake for UnvalidatedPluralRange
sourceยงfn bake(&self, env: &CrateEnv) -> TokenStream
fn bake(&self, env: &CrateEnv) -> TokenStream
sourceยงimpl BakeSize for UnvalidatedPluralRange
impl BakeSize for UnvalidatedPluralRange
sourceยงfn borrows_size(&self) -> usize
fn borrows_size(&self) -> usize
Returns the size
sourceยงimpl Clone for UnvalidatedPluralRange
impl Clone for UnvalidatedPluralRange
sourceยงfn clone(&self) -> UnvalidatedPluralRange
fn clone(&self) -> UnvalidatedPluralRange
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 UnvalidatedPluralRange
impl Debug for UnvalidatedPluralRange
sourceยงimpl<'de> Deserialize<'de> for UnvalidatedPluralRange
impl<'de> Deserialize<'de> for UnvalidatedPluralRange
sourceยงfn deserialize<D>(
deserializer: D,
) -> Result<UnvalidatedPluralRange, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D,
) -> Result<UnvalidatedPluralRange, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceยงimpl Hash for UnvalidatedPluralRange
impl Hash for UnvalidatedPluralRange
sourceยงimpl Ord for UnvalidatedPluralRange
impl Ord for UnvalidatedPluralRange
sourceยงfn cmp(&self, other: &UnvalidatedPluralRange) -> Ordering
fn cmp(&self, other: &UnvalidatedPluralRange) -> 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 UnvalidatedPluralRange
impl PartialEq for UnvalidatedPluralRange
sourceยงimpl PartialOrd for UnvalidatedPluralRange
impl PartialOrd for UnvalidatedPluralRange
sourceยงimpl Serialize for UnvalidatedPluralRange
impl Serialize for UnvalidatedPluralRange
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 UnvalidatedPluralRange
impl<'a> ZeroMapKV<'a> for UnvalidatedPluralRange
sourceยงtype Container = ZeroVec<'a, UnvalidatedPluralRange>
type Container = ZeroVec<'a, UnvalidatedPluralRange>
The container that can be used with this type:
ZeroVec
or VarZeroVec
.type Slice = ZeroSlice<UnvalidatedPluralRange>
sourceยงtype GetType = UnvalidatedPluralRangeULE
type GetType = UnvalidatedPluralRangeULE
The type produced by
Container::get()
Read moresourceยงtype OwnedType = UnvalidatedPluralRange
type OwnedType = UnvalidatedPluralRange
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 UnvalidatedPluralRange
impl Eq for UnvalidatedPluralRange
impl StructuralPartialEq for UnvalidatedPluralRange
Auto Trait Implementationsยง
impl Freeze for UnvalidatedPluralRange
impl RefUnwindSafe for UnvalidatedPluralRange
impl Send for UnvalidatedPluralRange
impl Sync for UnvalidatedPluralRange
impl Unpin for UnvalidatedPluralRange
impl UnwindSafe for UnvalidatedPluralRange
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