pub struct TableStyle {
pub top_left: &'static str,
pub top_right: &'static str,
pub bottom_left: &'static str,
pub bottom_right: &'static str,
pub horiz: &'static str,
pub vert: &'static str,
pub top_joint: &'static str,
pub mid_left: &'static str,
pub mid_right: &'static str,
pub mid_joint: &'static str,
pub bottom_joint: &'static str,
}Expand description
Characters used to draw table borders and joints.
The renderer currently uses the Unicode preset from TableStyle::unicode.
Section and separator rows can also use their own TableStyle snapshot,
which lets you mix multiple visual themes in a single table.
This type exists so the border characters are grouped in one place if you
want to experiment with alternate themes or extend the renderer.
Fields§
§top_left: &'static strTop-left corner character.
top_right: &'static strTop-right corner character.
bottom_left: &'static strBottom-left corner character.
bottom_right: &'static strBottom-right corner character.
horiz: &'static strHorizontal border character.
vert: &'static strVertical border character.
top_joint: &'static strTop border joint between columns.
mid_left: &'static strLeft border character for section separators and middle rules.
mid_right: &'static strRight border character for section separators and middle rules.
mid_joint: &'static strJoint character for interior separators.
bottom_joint: &'static strBottom border joint between columns.
Implementations§
Source§impl TableStyle
impl TableStyle
Sourcepub fn from_section_style(section_style: SectionStyle) -> Self
pub fn from_section_style(section_style: SectionStyle) -> Self
Convert a SectionStyle into a TableStyle by filling in the missing fields
Trait Implementations§
Source§impl Clone for TableStyle
impl Clone for TableStyle
Source§fn clone(&self) -> TableStyle
fn clone(&self) -> TableStyle
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more