Struct cursive_table_view::TableColumn [−][src]
A type used for the construction of columns in a
TableView
.
Implementations
impl<H: Copy + Clone + 'static> TableColumn<H>
[src]
pub fn ordering(self, order: Ordering) -> Self
[src]
Sets the default ordering of the column.
pub fn align(self, alignment: HAlign) -> Self
[src]
Sets the horizontal text alignment of the column.
pub fn width(self, width: usize) -> Self
[src]
Sets how many characters of width this column will try to occupy.
pub fn width_percent(self, width: usize) -> Self
[src]
Sets what percentage of the width of the entire table this column will try to occupy.
Auto Trait Implementations
impl<H> RefUnwindSafe for TableColumn<H> where
H: RefUnwindSafe,
H: RefUnwindSafe,
impl<H> Send for TableColumn<H> where
H: Send,
H: Send,
impl<H> Sync for TableColumn<H> where
H: Sync,
H: Sync,
impl<H> Unpin for TableColumn<H> where
H: Unpin,
H: Unpin,
impl<H> UnwindSafe for TableColumn<H> where
H: UnwindSafe,
H: UnwindSafe,
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> Erased for T
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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>,
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]
impl<T> With for T
[src]
pub fn wrap_with<U, F>(self, f: F) -> U where
F: FnOnce(Self) -> U,
[src]
F: FnOnce(Self) -> U,
pub fn with<F>(self, f: F) -> Self where
F: FnOnce(&mut Self),
[src]
F: FnOnce(&mut Self),
pub fn try_with<E, F>(self, f: F) -> Result<Self, E> where
F: FnOnce(&mut Self) -> Result<(), E>,
[src]
F: FnOnce(&mut Self) -> Result<(), E>,
pub fn with_if<F>(self, condition: bool, f: F) -> Self where
F: FnOnce(&mut Self),
[src]
F: FnOnce(&mut Self),