Struct unicode_prettytable::HeaderBuilder[][src]

pub struct HeaderBuilder<'a, T> where
    T: AsRef<str>,
    &'a T: AsRef<str>, 
{ /* fields omitted */ }

Builder for Header.

Implementations

impl<'a, T: Clone> HeaderBuilder<'a, T> where
    T: AsRef<str>,
    &'a T: AsRef<str>, 
[src]

pub fn double_bar(&mut self, value: bool) -> &mut Self[src]

Whether to use double bar Unicode characters surrounding the header

pub fn centered_text(&mut self, value: bool) -> &mut Self[src]

Whether to center the header text within each column

pub fn columns(&mut self, value: &'a Vec<T>) -> &mut Self[src]

Use a separate set of columns for the header Otherwise, the header will automatically use the first row in the table input

pub fn build(&self) -> Result<Header<'a, T>, String>[src]

Builds a new Header.

Errors

If a required field has not been initialized.

Trait Implementations

impl<'a, T: Clone> Clone for HeaderBuilder<'a, T> where
    T: AsRef<str>,
    &'a T: AsRef<str>, 
[src]

impl<'a, T: Default> Default for HeaderBuilder<'a, T> where
    T: AsRef<str>,
    &'a T: AsRef<str>, 
[src]

Auto Trait Implementations

impl<'a, T> RefUnwindSafe for HeaderBuilder<'a, T> where
    T: RefUnwindSafe

impl<'a, T> Send for HeaderBuilder<'a, T> where
    T: Sync

impl<'a, T> Sync for HeaderBuilder<'a, T> where
    T: Sync

impl<'a, T> Unpin for HeaderBuilder<'a, T>

impl<'a, T> UnwindSafe for HeaderBuilder<'a, T> where
    T: RefUnwindSafe

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.