pub struct PluralElementsPackedCow<'data, V: VarULE + ?Sized> {
    pub elements: Cow<'data, PluralElementsPackedULE<V>>,
}Expand description
A sized packed PluralElements suitable for use in data structs.
This type has the following limitations:
- It only supports 
str - It does not implement 
VarULEso it can’t be used in aVarZeroSlice - It always serializes the 
FourBitMetadataas 0 
Use PluralElementsPackedULE directly if you need these additional features.
Fields§
§elements: Cow<'data, PluralElementsPackedULE<V>>The encoded elements.
Implementations§
Source§impl<V> PluralElementsPackedCow<'_, V>
 
impl<V> PluralElementsPackedCow<'_, V>
Sourcepub fn get<'a>(&'a self, op: PluralOperands, rules: &PluralRules) -> &'a V
 
pub fn get<'a>(&'a self, op: PluralOperands, rules: &PluralRules) -> &'a V
Returns the value for the given PluralOperands and PluralRules.
Trait Implementations§
Source§impl<V> Clone for PluralElementsPackedCow<'_, V>
 
impl<V> Clone for PluralElementsPackedCow<'_, V>
Source§impl<'de: 'data, 'data, V: VarULE + ?Sized> Deserialize<'de> for PluralElementsPackedCow<'data, V>
 
impl<'de: 'data, 'data, V: VarULE + ?Sized> Deserialize<'de> for PluralElementsPackedCow<'data, V>
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<T, V> From<PluralElements<T>> for PluralElementsPackedCow<'static, V>
 
impl<T, V> From<PluralElements<T>> for PluralElementsPackedCow<'static, V>
Source§fn from(value: PluralElements<T>) -> Self
 
fn from(value: PluralElements<T>) -> Self
Converts to this type from the input type.
Source§impl<'data, V: PartialEq + VarULE + ?Sized> PartialEq for PluralElementsPackedCow<'data, V>
 
impl<'data, V: PartialEq + VarULE + ?Sized> PartialEq for PluralElementsPackedCow<'data, V>
Source§fn eq(&self, other: &PluralElementsPackedCow<'data, V>) -> bool
 
fn eq(&self, other: &PluralElementsPackedCow<'data, V>) -> bool
Tests for 
self and other values to be equal, and is used by ==.Source§impl<'a, V> Yokeable<'a> for PluralElementsPackedCow<'static, V>
 
impl<'a, V> Yokeable<'a> for PluralElementsPackedCow<'static, V>
Source§type Output = PluralElementsPackedCow<'a, V>
 
type Output = PluralElementsPackedCow<'a, V>
This type MUST be 
Self with the 'static replaced with 'a, i.e. Self<'a>Source§fn transform_owned(self) -> Self::Output
 
fn transform_owned(self) -> Self::Output
Source§impl<'zf, 'zf_inner, V: VarULE + ?Sized> ZeroFrom<'zf, PluralElementsPackedCow<'zf_inner, V>> for PluralElementsPackedCow<'zf, V>where
    Cow<'zf, PluralElementsPackedULE<V>>: ZeroFrom<'zf, Cow<'zf_inner, PluralElementsPackedULE<V>>>,
 
impl<'zf, 'zf_inner, V: VarULE + ?Sized> ZeroFrom<'zf, PluralElementsPackedCow<'zf_inner, V>> for PluralElementsPackedCow<'zf, V>where
    Cow<'zf, PluralElementsPackedULE<V>>: ZeroFrom<'zf, Cow<'zf_inner, PluralElementsPackedULE<V>>>,
Source§fn zero_from(this: &'zf PluralElementsPackedCow<'zf_inner, V>) -> Self
 
fn zero_from(this: &'zf PluralElementsPackedCow<'zf_inner, V>) -> Self
Clone the other 
C into a struct that may retain references into C.impl<'data, V: VarULE + ?Sized> StructuralPartialEq for PluralElementsPackedCow<'data, V>
Auto Trait Implementations§
impl<'data, V> Freeze for PluralElementsPackedCow<'data, V>where
    V: ?Sized,
impl<'data, V> RefUnwindSafe for PluralElementsPackedCow<'data, V>where
    V: RefUnwindSafe + ?Sized,
impl<'data, V> Send for PluralElementsPackedCow<'data, V>
impl<'data, V> Sync for PluralElementsPackedCow<'data, V>
impl<'data, V> Unpin for PluralElementsPackedCow<'data, V>where
    V: ?Sized,
impl<'data, V> UnwindSafe for PluralElementsPackedCow<'data, V>
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