Struct termrect::style::Style [−][src]
pub struct Style { /* fields omitted */ }
Methods
impl Style
[src]
impl Style
pub fn set_fg(&self, c: Color) -> Style
[src]
pub fn set_fg(&self, c: Color) -> Style
pub fn set_bg(&self, c: Color) -> Style
[src]
pub fn set_bg(&self, c: Color) -> Style
pub fn isset(&self, a: StyleAttr) -> bool
[src]
pub fn isset(&self, a: StyleAttr) -> bool
pub fn set(&self, a: StyleAttr) -> Style
[src]
pub fn set(&self, a: StyleAttr) -> Style
pub fn clear(&self, a: StyleAttr) -> Style
[src]
pub fn clear(&self, a: StyleAttr) -> Style
pub fn toggle(&self, a: StyleAttr) -> Style
[src]
pub fn toggle(&self, a: StyleAttr) -> Style
Trait Implementations
impl Debug for Style
[src]
impl Debug for Style
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Copy for Style
[src]
impl Copy for Style
impl Clone for Style
[src]
impl Clone for Style
fn clone(&self) -> Style
[src]
fn clone(&self) -> Style
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl PartialEq for Style
[src]
impl PartialEq for Style
fn eq(&self, other: &Style) -> bool
[src]
fn eq(&self, other: &Style) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Style) -> bool
[src]
fn ne(&self, other: &Style) -> bool
This method tests for !=
.
impl Eq for Style
[src]
impl Eq for Style
impl Default for Style
[src]
impl Default for Style
impl Display for Style
[src]
impl Display for Style