pub struct TerminalStyle {
pub foreground: Option<Color>,
pub background: Option<Color>,
pub attributes: TextAttributes,
pub underline: Option<Underline>,
}Expand description
The complete physical text style applied to terminal output.
Fields§
§foreground: Option<Color>§background: Option<Color>§attributes: TextAttributes§underline: Option<Underline>Trait Implementations§
Source§impl Clone for TerminalStyle
impl Clone for TerminalStyle
Source§fn clone(&self) -> TerminalStyle
fn clone(&self) -> TerminalStyle
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 TerminalStyle
impl Debug for TerminalStyle
Source§impl Default for TerminalStyle
impl Default for TerminalStyle
Source§fn default() -> TerminalStyle
fn default() -> TerminalStyle
Returns the “default value” for a type. Read more
Source§impl Hash for TerminalStyle
impl Hash for TerminalStyle
Source§impl PartialEq for TerminalStyle
impl PartialEq for TerminalStyle
Source§fn eq(&self, other: &TerminalStyle) -> bool
fn eq(&self, other: &TerminalStyle) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for TerminalStyle
impl Eq for TerminalStyle
impl StructuralPartialEq for TerminalStyle
Auto Trait Implementations§
impl Freeze for TerminalStyle
impl RefUnwindSafe for TerminalStyle
impl Send for TerminalStyle
impl Sync for TerminalStyle
impl Unpin for TerminalStyle
impl UnsafeUnpin for TerminalStyle
impl UnwindSafe for TerminalStyle
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