Struct stanza::renderer::console::Decor

source ·
pub struct Decor {
Show 38 fields pub blank: char, pub up_bold_down_bold: char, pub right_bold_left_bold: char, pub right_bold_down_bold: char, pub down_bold_left_bold: char, pub up_bold_right_bold: char, pub up_bold_left_bold: char, pub up_bold_right_thin_down_bold: char, pub up_bold_right_bold_down_bold: char, pub up_bold_down_bold_left_thin: char, pub up_bold_down_bold_left_bold: char, pub right_bold_down_thin_left_bold: char, pub right_bold_down_bold_left_bold: char, pub up_thin_right_bold_left_bold: char, pub up_bold_right_bold_left_bold: char, pub up_thin_right_bold_down_thin_left_bold: char, pub up_bold_right_thin_down_bold_left_thin: char, pub up_bold_right_bold_down_bold_left_bold: char, pub right_thin_left_thin: char, pub up_thin_down_thin: char, pub right_thin_down_thin: char, pub down_thin_left_thin: char, pub up_thin_right_thin: char, pub up_thin_left_thin: char, pub up_thin_right_thin_down_thin: char, pub up_thin_down_thin_left_thin: char, pub right_thin_down_thin_left_thin: char, pub up_thin_right_thin_left_thin: char, pub up_thin_right_thin_down_thin_left_thin: char, pub up_thin: char, pub right_thin: char, pub down_thin: char, pub left_thin: char, pub print_escape_codes: bool, pub draw_outer_border: bool, pub draw_inner_horizontal_border: bool, pub remap_thin_to: Line, pub remap_bold_to: Line,
}

Fields§

§blank: char§up_bold_down_bold: char§right_bold_left_bold: char§right_bold_down_bold: char§down_bold_left_bold: char§up_bold_right_bold: char§up_bold_left_bold: char§up_bold_right_thin_down_bold: char§up_bold_right_bold_down_bold: char§up_bold_down_bold_left_thin: char§up_bold_down_bold_left_bold: char§right_bold_down_thin_left_bold: char§right_bold_down_bold_left_bold: char§up_thin_right_bold_left_bold: char§up_bold_right_bold_left_bold: char§up_thin_right_bold_down_thin_left_bold: char§up_bold_right_thin_down_bold_left_thin: char§up_bold_right_bold_down_bold_left_bold: char§right_thin_left_thin: char§up_thin_down_thin: char§right_thin_down_thin: char§down_thin_left_thin: char§up_thin_right_thin: char§up_thin_left_thin: char§up_thin_right_thin_down_thin: char§up_thin_down_thin_left_thin: char§right_thin_down_thin_left_thin: char§up_thin_right_thin_left_thin: char§up_thin_right_thin_down_thin_left_thin: char§up_thin: char§right_thin: char§down_thin: char§left_thin: char§print_escape_codes: bool§draw_outer_border: bool§draw_inner_horizontal_border: bool§remap_thin_to: Line§remap_bold_to: Line

Implementations§

source§

impl Decor

source

pub fn double_outline() -> Self

source

pub fn suppress_escape_codes(self) -> Self

source

pub fn suppress_outer_border(self) -> Self

source

pub fn suppress_inner_horizontal_border(self) -> Self

source

pub fn suppress_all_lines(self) -> Self

Trait Implementations§

source§

impl Clone for Decor

source§

fn clone(&self) -> Decor

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for Decor

source§

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

Formats the value using the given formatter. Read more
source§

impl Default for Decor

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl PartialEq for Decor

source§

fn eq(&self, other: &Decor) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Eq for Decor

source§

impl StructuralEq for Decor

source§

impl StructuralPartialEq for Decor

Auto Trait Implementations§

§

impl RefUnwindSafe for Decor

§

impl Send for Decor

§

impl Sync for Decor

§

impl Unpin for Decor

§

impl UnwindSafe for Decor

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> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

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

§

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>,

§

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.