Struct ratatui_block::border_symbols::StaticSymbolSet

source ·
pub struct StaticSymbolSet {
Show 38 fields pub similar_to: BorderType, pub top_left_regular: &'static str, pub top_left_angled: &'static str, pub top_left_prolonged: &'static str, pub top_left_crossed: &'static str, pub top_regular: &'static str, pub top_overlap: &'static str, pub top_outward: &'static str, pub top_inward: &'static str, pub top_crossed: &'static str, pub top_right_regular: &'static str, pub top_right_angled: &'static str, pub top_right_prolonged: &'static str, pub top_right_crossed: &'static str, pub bottom_left_regular: &'static str, pub bottom_left_angled: &'static str, pub bottom_left_prolonged: &'static str, pub bottom_left_crossed: &'static str, pub bottom_regular: &'static str, pub bottom_overlap: &'static str, pub bottom_outward: &'static str, pub bottom_inward: &'static str, pub bottom_crossed: &'static str, pub bottom_right_regular: &'static str, pub bottom_right_angled: &'static str, pub bottom_right_prolonged: &'static str, pub bottom_right_crossed: &'static str, pub left_regular: &'static str, pub left_overlap: &'static str, pub left_outward: &'static str, pub left_inward: &'static str, pub left_crossed: &'static str, pub right_regular: &'static str, pub right_overlap: &'static str, pub right_outward: &'static str, pub right_inward: &'static str, pub right_crossed: &'static str, pub crossed: &'static str,
}
Expand description

For manual borders.

This symbol set can have connections to other borders, but it’s not possible to have different connections depending on the other border.

Fields§

§similar_to: BorderType

When connecting to other borders, how does this one behave like?

§top_left_regular: &'static str§top_left_angled: &'static str§top_left_prolonged: &'static str§top_left_crossed: &'static str§top_regular: &'static str§top_overlap: &'static str§top_outward: &'static str§top_inward: &'static str§top_crossed: &'static str§top_right_regular: &'static str§top_right_angled: &'static str§top_right_prolonged: &'static str§top_right_crossed: &'static str§bottom_left_regular: &'static str§bottom_left_angled: &'static str§bottom_left_prolonged: &'static str§bottom_left_crossed: &'static str§bottom_regular: &'static str§bottom_overlap: &'static str§bottom_outward: &'static str§bottom_inward: &'static str§bottom_crossed: &'static str§bottom_right_regular: &'static str§bottom_right_angled: &'static str§bottom_right_prolonged: &'static str§bottom_right_crossed: &'static str§left_regular: &'static str§left_overlap: &'static str§left_outward: &'static str§left_inward: &'static str§left_crossed: &'static str§right_regular: &'static str§right_overlap: &'static str§right_outward: &'static str§right_inward: &'static str§right_crossed: &'static str§crossed: &'static str

Trait Implementations§

source§

impl BorderSymbolSet for StaticSymbolSet

source§

fn border_type(&self) -> BorderType

Equivalent BorderType.
source§

fn symbol(&self, side: Side, symbol: BorderSymbol) -> &'static str

Get the actual symbol occurring along one side of the area. Read more
source§

fn crossing( &self, _top_side: Side, _top: BorderType, _right_side: Side, _right: BorderType, _bottom_side: Side, _bottom: BorderType, _left_side: Side, _left: BorderType, ) -> &'static str

Get the symbol for a 4-way crossing of lines. Read more
source§

impl Clone for StaticSymbolSet

source§

fn clone(&self) -> StaticSymbolSet

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 StaticSymbolSet

source§

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

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

impl PartialEq for StaticSymbolSet

source§

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

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

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

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

impl Copy for StaticSymbolSet

source§

impl Eq for StaticSymbolSet

source§

impl StructuralPartialEq for StaticSymbolSet

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

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
source§

impl<T> DynClone for T
where T: Clone,

source§

fn __clone_box(&self, _: Private) -> *mut ()

§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
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> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

impl<T> ToOwned for T
where T: Clone,

source§

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

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.