pub enum StyleAction {
Color(Color),
OnColor(Color),
Clear,
Normal,
Bold,
Dimmed,
Italic,
Underline,
Blink,
Reversed,
Hidden,
Strikethrough,
}Expand description
A styling action to apply to text (color, formatting, etc.).
These actions are accumulated in cells and columns, and applied when rendering.
Variants§
Color(Color)
Set the foreground color.
OnColor(Color)
Set the background color.
Clear
Clear all formatting.
Normal
Reset formatting back to normal.
Bold
Make the text bold.
Dimmed
Make the text dimmed.
Italic
Make the text italic.
Underline
Underline the text.
Blink
Blink the text.
Reversed
Reverse foreground and background colors.
Hidden
Hide the text.
Strikethrough
Strike the text through.
Trait Implementations§
Source§impl Clone for StyleAction
impl Clone for StyleAction
Source§fn clone(&self) -> StyleAction
fn clone(&self) -> StyleAction
Returns a duplicate 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 StyleAction
impl Debug for StyleAction
Source§impl PartialEq for StyleAction
impl PartialEq for StyleAction
impl Copy for StyleAction
impl Eq for StyleAction
impl StructuralPartialEq for StyleAction
Auto Trait Implementations§
impl Freeze for StyleAction
impl RefUnwindSafe for StyleAction
impl Send for StyleAction
impl Sync for StyleAction
impl Unpin for StyleAction
impl UnsafeUnpin for StyleAction
impl UnwindSafe for StyleAction
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