Skip to main content

FontMode

Enum FontMode 

Source
pub enum FontMode {
Show 17 variants Bold(&'static str), Dim(&'static str), Italic(&'static str), Underline(&'static str), Blinking(&'static str), Reverse(&'static str), Invisible(&'static str), Strikethrough(&'static str), ResetAll(&'static str), ResetBold(&'static str), ResetDim(&'static str), ResetItalic(&'static str), ResetUnderline(&'static str), ResetBlinking(&'static str), ResetReverse(&'static str), ResetInvisible(&'static str), ResetStrikethrough(&'static str),
}

Variants§

§

Bold(&'static str)

§

Dim(&'static str)

§

Italic(&'static str)

§

Underline(&'static str)

§

Blinking(&'static str)

§

Reverse(&'static str)

§

Invisible(&'static str)

§

Strikethrough(&'static str)

§

ResetAll(&'static str)

§

ResetBold(&'static str)

§

ResetDim(&'static str)

§

ResetItalic(&'static str)

§

ResetUnderline(&'static str)

§

ResetBlinking(&'static str)

§

ResetReverse(&'static str)

§

ResetInvisible(&'static str)

§

ResetStrikethrough(&'static str)

Implementations§

Source§

impl FontMode

Source

pub fn bold() -> Self

Source

pub fn dim() -> Self

Source

pub fn italic() -> Self

Source

pub fn underline() -> Self

Source

pub fn blinking() -> Self

Source

pub fn reverse() -> Self

Source

pub fn invisible() -> Self

Source

pub fn strikethrough() -> Self

Source

pub fn reset_all() -> Self

Source

pub fn reset_bold() -> Self

Source

pub fn reset_dim() -> Self

Source

pub fn reset_italic() -> Self

Source

pub fn reset_underline() -> Self

Source

pub fn reset_blinking() -> Self

Source

pub fn reset_reverse() -> Self

Source

pub fn reset_invisible() -> Self

Source

pub fn reset_strikethrough() -> Self

Trait Implementations§

Source§

impl Add for FontMode

Source§

type Output = String

The resulting type after applying the + operator.
Source§

fn add(self, rhs: FontMode) -> Self::Output

Performs the + operation. Read more
Source§

impl Add<BackgroundColors> for FontMode

Source§

type Output = String

The resulting type after applying the + operator.
Source§

fn add(self, rhs: BackgroundColors) -> Self::Output

Performs the + operation. Read more
Source§

impl Add<FontMode> for BackgroundColors

Source§

type Output = String

The resulting type after applying the + operator.
Source§

fn add(self, rhs: FontMode) -> Self::Output

Performs the + operation. Read more
Source§

impl Add<FontMode> for String

Source§

type Output = String

The resulting type after applying the + operator.
Source§

fn add(self, rhs: FontMode) -> Self::Output

Performs the + operation. Read more
Source§

impl Add<FontMode> for ForegroundColors

Source§

type Output = String

The resulting type after applying the + operator.
Source§

fn add(self, rhs: FontMode) -> Self::Output

Performs the + operation. Read more
Source§

impl Add<ForegroundColors> for FontMode

Source§

type Output = String

The resulting type after applying the + operator.
Source§

fn add(self, rhs: ForegroundColors) -> Self::Output

Performs the + operation. Read more
Source§

impl Add<String> for FontMode

Source§

type Output = String

The resulting type after applying the + operator.
Source§

fn add(self, rhs: String) -> Self::Output

Performs the + operation. Read more
Source§

impl Display for FontMode

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.