BorderDefault

Struct BorderDefault 

Source
pub struct BorderDefault { /* private fields */ }

Implementations§

Source§

impl BorderDefault

Source

pub const fn new( top: CharacterPixel, top_left: CharacterPixel, left: CharacterPixel, bottom_left: CharacterPixel, bottom: CharacterPixel, bottom_right: CharacterPixel, right: CharacterPixel, top_right: CharacterPixel, ) -> BorderDefault

Source

pub const fn top(&self) -> &CharacterPixel

Source

pub const fn top_left(&self) -> &CharacterPixel

Source

pub const fn left(&self) -> &CharacterPixel

Source

pub const fn bottom_left(&self) -> &CharacterPixel

Source

pub const fn bottom(&self) -> &CharacterPixel

Source

pub const fn bottom_right(&self) -> &CharacterPixel

Source

pub const fn right(&self) -> &CharacterPixel

Source

pub const fn top_right(&self) -> &CharacterPixel

Source

pub fn symmetric( horizontal: char, vertical: char, corner: char, foreground: TerminalColor, background: TerminalColor, ) -> Result<Self, String>

§Errors

Returns an error if the passed chars are control characters.

Source

pub fn symmetric_static<const HORIZONTAL: char, const VERTICAL: char, const CORNER: char>( foreground: TerminalColor, background: TerminalColor, ) -> Self
where [(); { _ }]:,

Source

pub fn ascii(foreground: TerminalColor, background: TerminalColor) -> Self

Source

pub fn overdrawn(foreground: TerminalColor, background: TerminalColor) -> Self

Source

pub fn same_color( top: char, top_left: char, left: char, bottom_left: char, bottom: char, bottom_right: char, right: char, top_right: char, foreground: TerminalColor, background: TerminalColor, ) -> Result<Self, String>

§Errors

Returns an error if the passed chars are control characters.

Source

pub fn same_color_static<const TOP: char, const TOP_LEFT: char, const LEFT: char, const BOTTOM_LEFT: char, const BOTTOM: char, const BOTTOM_RIGHT: char, const RIGHT: char, const TOP_RIGHT: char>( foreground: TerminalColor, background: TerminalColor, ) -> Self
where [(); { _ }]:,

Source

pub fn single_stroke( foreground: TerminalColor, background: TerminalColor, ) -> Self

Source

pub fn rounded_corners( foreground: TerminalColor, background: TerminalColor, ) -> Self

Source

pub fn double_stroke( foreground: TerminalColor, background: TerminalColor, ) -> Self

Source

pub fn bold_stroke(foreground: TerminalColor, background: TerminalColor) -> Self

Trait Implementations§

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