pub enum Part {
Text(String),
Escape,
Newline,
Style(StyleKind, bool),
Color(Color, bool),
Emote(EmoteKind),
}Expand description
A single element of parsed sillycode markup.
Variants§
Text(String)
Plain text content.
Escape
Escape backslash character.
Newline
Line break character.
Style(StyleKind, bool)
Style formatting toggle, enable or disable, each effect is independent.
Color(Color, bool)
Color formatting toggle, enable or disable, acts as a stack.
Emote(EmoteKind)
Emoticon image.
Trait Implementations§
impl StructuralPartialEq for Part
Auto Trait Implementations§
impl Freeze for Part
impl RefUnwindSafe for Part
impl Send for Part
impl Sync for Part
impl Unpin for Part
impl UnwindSafe for Part
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