pub struct ScriptDisplayNames<'data> {
pub names: ZeroMap<'data, UnvalidatedTinyAsciiStr<4>, str>,
pub short_names: ZeroMap<'data, UnvalidatedTinyAsciiStr<4>, str>,
}Expand description
ScriptDisplayNames provides mapping between a script code and it’s display name.
Fields§
§names: ZeroMap<'data, UnvalidatedTinyAsciiStr<4>, str>Mapping for script to locale display name.
short_names: ZeroMap<'data, UnvalidatedTinyAsciiStr<4>, str>Mapping for script to locale display short name.
Trait Implementations§
Source§impl<'data> Bake for ScriptDisplayNames<'data>
impl<'data> Bake for ScriptDisplayNames<'data>
Source§fn bake(&self, env: &CrateEnv) -> TokenStream
fn bake(&self, env: &CrateEnv) -> TokenStream
Source§impl<'data> BakeSize for ScriptDisplayNames<'data>
impl<'data> BakeSize for ScriptDisplayNames<'data>
Source§fn borrows_size(&self) -> usize
fn borrows_size(&self) -> usize
Returns the size
Source§impl<'data> Clone for ScriptDisplayNames<'data>
impl<'data> Clone for ScriptDisplayNames<'data>
Source§impl<'data> Debug for ScriptDisplayNames<'data>
impl<'data> Debug for ScriptDisplayNames<'data>
Source§impl<'data> Default for ScriptDisplayNames<'data>
impl<'data> Default for ScriptDisplayNames<'data>
Source§impl<'de: 'data, 'data> Deserialize<'de> for ScriptDisplayNames<'data>
impl<'de: 'data, 'data> Deserialize<'de> for ScriptDisplayNames<'data>
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 MaybeAsVarULE for ScriptDisplayNames<'_>
impl MaybeAsVarULE for ScriptDisplayNames<'_>
Source§impl MaybeEncodeAsVarULE for ScriptDisplayNames<'_>
Available on crate feature datagen only.
impl MaybeEncodeAsVarULE for ScriptDisplayNames<'_>
Available on crate feature
datagen only.Source§type EncodeableStruct<'b> = &'b [()]
where
Self: 'b
type EncodeableStruct<'b> = &'b [()] where Self: 'b
The type returned by
Self::maybe_as_encodeable.Source§fn maybe_as_encodeable<'b>(&'b self) -> Option<Self::EncodeableStruct<'b>>
fn maybe_as_encodeable<'b>(&'b self) -> Option<Self::EncodeableStruct<'b>>
Returns something encodeable to the
MaybeAsVarULE::EncodedStruct that represents
this data struct, or None if the data struct does not support this representation.Source§impl<'data> PartialEq for ScriptDisplayNames<'data>
impl<'data> PartialEq for ScriptDisplayNames<'data>
Source§impl<'data> Serialize for ScriptDisplayNames<'data>
impl<'data> Serialize for ScriptDisplayNames<'data>
impl<'data> StructuralPartialEq for ScriptDisplayNames<'data>
Source§impl<'yoke> Yokeable<'yoke> for ScriptDisplayNames<'static>
impl<'yoke> Yokeable<'yoke> for ScriptDisplayNames<'static>
Source§type Output = ScriptDisplayNames<'yoke>
type Output = ScriptDisplayNames<'yoke>
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> ZeroFrom<'zf, ScriptDisplayNames<'zf_inner>> for ScriptDisplayNames<'zf>
impl<'zf, 'zf_inner> ZeroFrom<'zf, ScriptDisplayNames<'zf_inner>> for ScriptDisplayNames<'zf>
Source§fn zero_from(this: &'zf ScriptDisplayNames<'zf_inner>) -> Self
fn zero_from(this: &'zf ScriptDisplayNames<'zf_inner>) -> Self
Clone the other
C into a struct that may retain references into C.Auto Trait Implementations§
impl<'data> Freeze for ScriptDisplayNames<'data>
impl<'data> RefUnwindSafe for ScriptDisplayNames<'data>
impl<'data> Send for ScriptDisplayNames<'data>
impl<'data> Sync for ScriptDisplayNames<'data>
impl<'data> Unpin for ScriptDisplayNames<'data>
impl<'data> UnsafeUnpin for ScriptDisplayNames<'data>
impl<'data> UnwindSafe for ScriptDisplayNames<'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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
impl<T> ErasedDestructor for Twhere
T: 'static,
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