Struct ruscii::drawing::RectCharset
source · pub struct RectCharset {
pub top: char,
pub bottom: char,
pub left: char,
pub right: char,
pub top_left: char,
pub top_right: char,
pub bottom_left: char,
pub bottom_right: char,
}
Expand description
The set of all characters needed to draw all edges and corners of a variable-length rectangle in the terminal.
Fields§
§top: char
§bottom: char
§left: char
§right: char
§top_left: char
§top_right: char
§bottom_left: char
§bottom_right: char
Implementations§
source§impl RectCharset
impl RectCharset
sourcepub fn simple_lines() -> RectCharset
pub fn simple_lines() -> RectCharset
Returns a RectCharset
for a single-line rectangle.
Rectangle
Using this charset will provide a rectangle that looks like this:
┌──────┐
│ruscii│
└──────┘
sourcepub fn simple_round_lines() -> RectCharset
pub fn simple_round_lines() -> RectCharset
Returns a RectCharset
for a single-line rounded-corner rectangle.
Rectangle
Using this charset will provide a rectangle that looks like this:
╭──────╮
│ruscii│
╰──────╯
sourcepub fn double_lines() -> RectCharset
pub fn double_lines() -> RectCharset
Returns a RectCharset
for a double-line rectangle.
Rectangle
Using this charset will provide a rectangle that looks like this:
╔══════╗
║ruscii║
╚══════╝
Trait Implementations§
source§impl Clone for RectCharset
impl Clone for RectCharset
source§fn clone(&self) -> RectCharset
fn clone(&self) -> RectCharset
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more