pub enum ActionSubText {
Chars(String),
Block(String),
}Expand description
The unit of one line in an action.
If a frontend supports animation,
the characters in ActionSubText::Chars should be printed one by one,
while the characters in ActionSubText::Block should be printed together.
Variants§
Chars(String)
Characters printed one by one. Usually they are meaningful texts.
Block(String)
Characters printed together. Usually they are HTML tags or other control characters.
Implementations§
source§impl ActionSubText
impl ActionSubText
Trait Implementations§
source§impl Clone for ActionSubText
impl Clone for ActionSubText
source§fn clone(&self) -> ActionSubText
fn clone(&self) -> ActionSubText
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 ActionSubText
impl Debug for ActionSubText
source§impl<'de> Deserialize<'de> for ActionSubText
impl<'de> Deserialize<'de> for ActionSubText
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 PartialEq<ActionSubText> for ActionSubText
impl PartialEq<ActionSubText> for ActionSubText
source§fn eq(&self, other: &ActionSubText) -> bool
fn eq(&self, other: &ActionSubText) -> bool
This method tests for
self and other values to be equal, and is used
by ==.