Struct libtableformat::table::Border[][src]

pub struct Border {
Show fields pub top_left: char, pub top: char, pub top_right: char, pub top_split: char, pub bottom_left: char, pub bottom: char, pub bottom_right: char, pub bottom_split: char, pub left: char, pub left_split: char, pub right: char, pub right_split: char, pub vertical_split: char, pub vertical_split_intersect_left: char, pub vertical_split_intersect_right: char, pub vertical_split_intersect_both: char, pub horizontal_split: char, pub horizontal_split_intersect_top: char, pub horizontal_split_intersect_bottom: char, pub horizontal_split_intersect_both: char, pub color: Color,
}

Fields

top_left: chartop: chartop_right: chartop_split: charbottom_left: charbottom: charbottom_right: charbottom_split: charleft: charleft_split: charright: charright_split: charvertical_split: charvertical_split_intersect_left: charvertical_split_intersect_right: charvertical_split_intersect_both: charhorizontal_split: charhorizontal_split_intersect_top: charhorizontal_split_intersect_bottom: charhorizontal_split_intersect_both: charcolor: Color

Implementations

impl Border[src]

#[must_use]
pub fn default() -> Border
[src]

#[must_use]
pub fn format_top(self: &Border, widths: &[usize]) -> String
[src]

Formats the top border

#[must_use]
pub fn format_bottom(self: &Border, widths: &[usize]) -> String
[src]

Formats the bottom border

#[must_use]
pub fn format_left(self: &Border) -> String
[src]

Formats the left border.

#[must_use]
pub fn format_right(self: &Border) -> String
[src]

Formats the right border.

#[must_use]
pub fn format_horizontal_split(self: &Border, widths: &[usize]) -> String
[src]

Formats a horizontal split.

#[must_use]
pub fn format_vertical_split(self: &Border) -> String
[src]

Formats a vertical split.

Trait Implementations

impl Debug for Border[src]

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

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl RefUnwindSafe for Border

impl Send for Border

impl Sync for Border

impl Unpin for Border

impl UnwindSafe for Border

Blanket Implementations

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

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

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

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

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

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

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

pub fn from(t: T) -> T[src]

Performs the conversion.

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

pub fn into(self) -> U[src]

Performs the conversion.

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.

pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]

Performs the conversion.

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.

pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]

Performs the conversion.