Struct hanbun::Cell[][src]

pub struct Cell {
    pub upper_block: Option<Option<Color>>,
    pub lower_block: Option<Option<Color>>,
    pub char: Option<char>,
    pub char_color: Option<Color>,
}

Represents a terminal cell. Every cell has two blocks.

Fields

upper_block: Option<Option<Color>>

The upper block. It can be modified using Buffer::set and Buffer::color.

lower_block: Option<Option<Color>>

The lower block. It can be modified using Buffer::set and Buffer::color.

char: Option<char>

The character used if both Cell::upper_block and Cell::lower_block are None.

This character occupies the whole cell.

char_color: Option<Color>

A color for Cell::char.

Trait Implementations

impl Clone for Cell[src]

impl Debug for Cell[src]

Auto Trait Implementations

impl RefUnwindSafe for Cell

impl Send for Cell

impl Sync for Cell

impl Unpin for Cell

impl UnwindSafe for Cell

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.