[][src]Struct term_painter::Style

pub struct Style {
    pub fg: Color,
    pub bg: Color,
    // some fields omitted
}

Saves all properties of a style. Implements ToStyle, so you can call style modifiers on it.

Fields

fg: Colorbg: Color

Implementations

impl Style[src]

pub fn get_bold(&self) -> Option<bool>[src]

pub fn set_bold(&mut self, v: Option<bool>)[src]

pub fn get_dim(&self) -> Option<bool>[src]

pub fn set_dim(&mut self, v: Option<bool>)[src]

pub fn get_underline(&self) -> Option<bool>[src]

pub fn set_underline(&mut self, v: Option<bool>)[src]

pub fn get_reverse(&self) -> Option<bool>[src]

pub fn set_reverse(&mut self, v: Option<bool>)[src]

pub fn get_secure(&self) -> Option<bool>[src]

pub fn set_secure(&mut self, v: Option<bool>)[src]

Trait Implementations

impl Clone for Style[src]

impl Copy for Style[src]

impl Debug for Style[src]

impl Default for Style[src]

impl Eq for Style[src]

impl PartialEq<Style> for Style[src]

impl StructuralEq for Style[src]

impl StructuralPartialEq for Style[src]

impl ToStyle for Style[src]

fn to_style(self) -> Style[src]

Dummy implementation that just returns self.

Auto Trait Implementations

impl RefUnwindSafe for Style

impl Send for Style

impl Sync for Style

impl Unpin for Style

impl UnwindSafe for Style

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.