Skip to main content

LineGlyphs

Struct LineGlyphs 

Source
pub struct LineGlyphs {
Show 16 fields pub isolated: char, pub end_up: char, pub end_right: char, pub end_down: char, pub end_left: char, pub vertical: char, pub horizontal: char, pub corner_down_right: char, pub corner_down_left: char, pub corner_up_right: char, pub corner_up_left: char, pub tee_right: char, pub tee_down: char, pub tee_left: char, pub tee_up: char, pub cross: char,
}
Expand description

Glyphs selected by the incident directions of one line-network cell.

Every field must be exactly one printable, one-cell-wide character. Public fields allow application-specific repertoires as well as the built-in ones.

Fields§

§isolated: char

A point with no incident segment.

§end_up: char

A one-ended segment continuing upward.

§end_right: char

A one-ended segment continuing rightward.

§end_down: char

A one-ended segment continuing downward.

§end_left: char

A one-ended segment continuing leftward.

§vertical: char

A segment continuing upward and downward.

§horizontal: char

A segment continuing leftward and rightward.

§corner_down_right: char

A corner continuing downward and rightward.

§corner_down_left: char

A corner continuing downward and leftward.

§corner_up_right: char

A corner continuing upward and rightward.

§corner_up_left: char

A corner continuing upward and leftward.

§tee_right: char

A tee continuing upward, downward, and rightward.

§tee_down: char

A tee continuing leftward, rightward, and downward.

§tee_left: char

A tee continuing upward, downward, and leftward.

§tee_up: char

A tee continuing leftward, rightward, and upward.

§cross: char

A four-way crossing.

Implementations§

Source§

impl LineGlyphs

Source

pub const NORMAL: Self

Standard square box-drawing characters.

Source

pub const ROUNDED: Self

Standard box drawing with rounded corners.

Source

pub const ASCII: Self

ASCII-only line drawing.

Source

pub const THICK: Self

Heavy box-drawing characters.

Source

pub const DOUBLE: Self

Double box-drawing characters.

Source

pub const HIDDEN: Self

Invisible line drawing that still occupies its cells.

Trait Implementations§

Source§

impl Clone for LineGlyphs

Source§

fn clone(&self) -> LineGlyphs

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Debug for LineGlyphs

Source§

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

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

impl PartialEq for LineGlyphs

Source§

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

Tests for self and other values to be equal, and is used by ==.
1.0.0 (const: unstable) · 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 LineGlyphs

Source§

impl Eq for LineGlyphs

Source§

impl StructuralPartialEq for LineGlyphs

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, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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,

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.