Struct tui::style::Style
[−]
[src]
pub struct Style { pub fg: Color, pub bg: Color, pub modifier: Modifier, }
Fields
fg: Color
bg: Color
modifier: Modifier
Methods
impl Style
[src]
pub fn reset(&mut self)
[src]
pub fn fg(self, color: Color) -> Style
[src]
pub fn bg(self, color: Color) -> Style
[src]
pub fn modifier(self, modifier: Modifier) -> Style
[src]
Trait Implementations
impl Debug for Style
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Clone for Style
[src]
fn clone(&self) -> Style
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Copy for Style
[src]
impl PartialEq for Style
[src]
fn eq(&self, __arg_0: &Style) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Style) -> bool
[src]
This method tests for !=
.