Struct unicode_prettytable::HeaderBuilder [−][src]
Builder for Header
.
Implementations
impl<'a, T: Clone> HeaderBuilder<'a, T> where
T: AsRef<str>,
&'a T: AsRef<str>,
[src]
T: AsRef<str>,
&'a T: AsRef<str>,
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]
Trait Implementations
impl<'a, T: Clone> Clone for HeaderBuilder<'a, T> where
T: AsRef<str>,
&'a T: AsRef<str>,
[src]
T: AsRef<str>,
&'a T: AsRef<str>,
fn clone(&self) -> HeaderBuilder<'a, T>
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<'a, T: Default> Default for HeaderBuilder<'a, T> where
T: AsRef<str>,
&'a T: AsRef<str>,
[src]
T: AsRef<str>,
&'a T: AsRef<str>,
fn default() -> HeaderBuilder<'a, T>
[src]
Auto Trait Implementations
impl<'a, T> RefUnwindSafe for HeaderBuilder<'a, T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
impl<'a, T> Send for HeaderBuilder<'a, T> where
T: Sync,
T: Sync,
impl<'a, T> Sync for HeaderBuilder<'a, T> where
T: Sync,
T: Sync,
impl<'a, T> Unpin for HeaderBuilder<'a, T>
impl<'a, T> UnwindSafe for HeaderBuilder<'a, T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
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]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,