[−][src]Struct term_painter::Style
Saves all properties of a style. Implements ToStyle
, so you can call
style modifiers on it.
Fields
fg: Color
bg: 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_blink(&self) -> Option<bool>
[src]
pub fn set_blink(&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
.
fn to_mapped_style<F>(self, func: F) -> Style where
F: FnOnce(&mut Style),
[src]
F: FnOnce(&mut Style),
fn fg(self, c: Color) -> Style
[src]
fn bg(self, c: Color) -> Style
[src]
fn bold(self) -> Style
[src]
fn dim(self) -> Style
[src]
fn underline(self) -> Style
[src]
fn not_underline(self) -> Style
[src]
fn blink(self) -> Style
[src]
fn reverse(self) -> Style
[src]
fn secure(self) -> Style
[src]
fn paint<T>(&self, obj: T) -> Painted<T> where
Self: Clone,
[src]
Self: Clone,
fn with<F, R>(&self, f: F) -> R where
F: FnOnce() -> R,
Self: Clone,
[src]
F: FnOnce() -> R,
Self: Clone,
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,