pub enum LineText {
One(String),
Variants(BTreeMap<String, String>),
}Expand description
A line in a pack’s language.
Variants§
One(String)
The same whichever variant is played (text).
Variants(BTreeMap<String, String>)
One per variant the game names (text_<variant>), for a language
where the line changes with more than a token (a hero’s gender,
say), by variant name.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for LineText
impl<'de> Deserialize<'de> for LineText
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
impl Eq for LineText
impl StructuralPartialEq for LineText
Auto Trait Implementations§
impl Freeze for LineText
impl RefUnwindSafe for LineText
impl Send for LineText
impl Sync for LineText
impl Unpin for LineText
impl UnsafeUnpin for LineText
impl UnwindSafe for LineText
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