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) -> Self
pub fn from_range(start: RawPluralCategory, end: RawPluralCategory) -> Self
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) -> Self::ULE
fn to_unaligned(self) -> Self::ULE
Source§fn from_unaligned(unaligned: Self::ULE) -> Self
fn from_unaligned(unaligned: Self::ULE) -> Self
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<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::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§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§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