Struct icu::experimental::personnames::provider::PersonNamesFormattingData
source · pub struct PersonNamesFormattingData<'data> {
pub attributes: u32,
pub patterns: VarZeroVec<'data, str>,
}
Expand description
PersonName Formatting data.
https://www.unicode.org/reports/tr35/tr35-personNames.html#personname-element
Fields§
§attributes: u32
§patterns: VarZeroVec<'data, str>
Trait Implementations§
source§impl<'data> Bake for PersonNamesFormattingData<'data>
impl<'data> Bake for PersonNamesFormattingData<'data>
source§fn bake(&self, env: &CrateEnv) -> TokenStream
fn bake(&self, env: &CrateEnv) -> TokenStream
source§impl<'data> BakeSize for PersonNamesFormattingData<'data>
impl<'data> BakeSize for PersonNamesFormattingData<'data>
source§fn borrows_size(&self) -> usize
fn borrows_size(&self) -> usize
Returns the size
source§impl Debug for PersonNamesFormattingData<'_>
impl Debug for PersonNamesFormattingData<'_>
source§impl<'de, 'data> Deserialize<'de> for PersonNamesFormattingData<'data>where
'de: 'data,
impl<'de, 'data> Deserialize<'de> for PersonNamesFormattingData<'data>where
'de: 'data,
source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<PersonNamesFormattingData<'data>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<PersonNamesFormattingData<'data>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl<'data> EncodeAsVarULE<PersonNamesFormattingDataVarULE> for &PersonNamesFormattingData<'data>
impl<'data> EncodeAsVarULE<PersonNamesFormattingDataVarULE> for &PersonNamesFormattingData<'data>
source§fn encode_var_ule_as_slices<R>(&self, cb: impl FnOnce(&[&[u8]]) -> R) -> R
fn encode_var_ule_as_slices<R>(&self, cb: impl FnOnce(&[&[u8]]) -> R) -> R
Calls
cb
with a piecewise list of byte slices that when concatenated
produce the memory pattern of the corresponding instance of T
. Read moresource§fn encode_var_ule_len(&self) -> usize
fn encode_var_ule_len(&self) -> usize
Return the length, in bytes, of the corresponding
VarULE
typesource§fn encode_var_ule_write(&self, dst: &mut [u8])
fn encode_var_ule_write(&self, dst: &mut [u8])
Write the corresponding
VarULE
type to the dst
buffer. dst
should
be the size of Self::encode_var_ule_len()
source§impl<'data> EncodeAsVarULE<PersonNamesFormattingDataVarULE> for PersonNamesFormattingData<'data>
impl<'data> EncodeAsVarULE<PersonNamesFormattingDataVarULE> for PersonNamesFormattingData<'data>
source§fn encode_var_ule_as_slices<R>(&self, cb: impl FnOnce(&[&[u8]]) -> R) -> R
fn encode_var_ule_as_slices<R>(&self, cb: impl FnOnce(&[&[u8]]) -> R) -> R
Calls
cb
with a piecewise list of byte slices that when concatenated
produce the memory pattern of the corresponding instance of T
. Read moresource§fn encode_var_ule_len(&self) -> usize
fn encode_var_ule_len(&self) -> usize
Return the length, in bytes, of the corresponding
VarULE
typesource§fn encode_var_ule_write(&self, dst: &mut [u8])
fn encode_var_ule_write(&self, dst: &mut [u8])
Write the corresponding
VarULE
type to the dst
buffer. dst
should
be the size of Self::encode_var_ule_len()
source§impl<'data> Serialize for PersonNamesFormattingData<'data>
impl<'data> Serialize for PersonNamesFormattingData<'data>
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<'data> ZeroFrom<'data, PersonNamesFormattingDataVarULE> for PersonNamesFormattingData<'data>
impl<'data> ZeroFrom<'data, PersonNamesFormattingDataVarULE> for PersonNamesFormattingData<'data>
source§fn zero_from(
other: &'data PersonNamesFormattingDataVarULE,
) -> PersonNamesFormattingData<'data>
fn zero_from( other: &'data PersonNamesFormattingDataVarULE, ) -> PersonNamesFormattingData<'data>
Clone the other
C
into a struct that may retain references into C
.Auto Trait Implementations§
impl<'data> Freeze for PersonNamesFormattingData<'data>
impl<'data> RefUnwindSafe for PersonNamesFormattingData<'data>
impl<'data> Send for PersonNamesFormattingData<'data>
impl<'data> Sync for PersonNamesFormattingData<'data>
impl<'data> Unpin for PersonNamesFormattingData<'data>
impl<'data> UnwindSafe for PersonNamesFormattingData<'data>
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> 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