pub struct CellHeightIncrease<W = usize> { /* private fields */ }
Expand description
A modification for cell/table to increase its height.
If used for a Table
PriorityNone
is used.
Implementations§
Source§impl<W> CellHeightIncrease<W>
impl<W> CellHeightIncrease<W>
Sourcepub fn new(height: W) -> Selfwhere
W: Measurement<Height>,
pub fn new(height: W) -> Selfwhere
W: Measurement<Height>,
Creates a new object of the structure.
Sourcepub fn priority<P>(self, priority: P) -> TableHeightIncrease<W, P>
pub fn priority<P>(self, priority: P) -> TableHeightIncrease<W, P>
The priority makes sense only for table, so the function
converts it to TableHeightIncrease
with a given priority.
Trait Implementations§
Source§impl<W, R> CellOption<R, ColoredConfig> for CellHeightIncrease<W>where
W: Measurement<Height>,
R: Records + ExactRecords + PeekableRecords + RecordsMut<String>,
for<'a> &'a R: Records,
for<'a> <<&'a R as Records>::Iter as IntoRecords>::Cell: AsRef<str>,
impl<W, R> CellOption<R, ColoredConfig> for CellHeightIncrease<W>where
W: Measurement<Height>,
R: Records + ExactRecords + PeekableRecords + RecordsMut<String>,
for<'a> &'a R: Records,
for<'a> <<&'a R as Records>::Iter as IntoRecords>::Cell: AsRef<str>,
Source§fn change(self, records: &mut R, cfg: &mut ColoredConfig, entity: Entity)
fn change(self, records: &mut R, cfg: &mut ColoredConfig, entity: Entity)
Modification function of a certail part of a grid targeted by
Entity
.Source§fn hint_change(&self) -> Option<Entity>
fn hint_change(&self) -> Option<Entity>
A hint whether an
TableOption
is going to change table layout. Read moreSource§impl<W: Clone> Clone for CellHeightIncrease<W>
impl<W: Clone> Clone for CellHeightIncrease<W>
Source§fn clone(&self) -> CellHeightIncrease<W>
fn clone(&self) -> CellHeightIncrease<W>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<W: Debug> Debug for CellHeightIncrease<W>
impl<W: Debug> Debug for CellHeightIncrease<W>
Source§impl<W: Ord> Ord for CellHeightIncrease<W>
impl<W: Ord> Ord for CellHeightIncrease<W>
Source§fn cmp(&self, other: &CellHeightIncrease<W>) -> Ordering
fn cmp(&self, other: &CellHeightIncrease<W>) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<W: PartialEq> PartialEq for CellHeightIncrease<W>
impl<W: PartialEq> PartialEq for CellHeightIncrease<W>
Source§impl<W: PartialOrd> PartialOrd for CellHeightIncrease<W>
impl<W: PartialOrd> PartialOrd for CellHeightIncrease<W>
Source§impl<R, W> TableOption<R, ColoredConfig, CompleteDimension> for CellHeightIncrease<W>where
W: Measurement<Height>,
R: Records + ExactRecords + PeekableRecords,
for<'a> &'a R: Records,
for<'a> <<&'a R as Records>::Iter as IntoRecords>::Cell: AsRef<str>,
impl<R, W> TableOption<R, ColoredConfig, CompleteDimension> for CellHeightIncrease<W>where
W: Measurement<Height>,
R: Records + ExactRecords + PeekableRecords,
for<'a> &'a R: Records,
for<'a> <<&'a R as Records>::Iter as IntoRecords>::Cell: AsRef<str>,
Source§fn change(
self,
records: &mut R,
cfg: &mut ColoredConfig,
dims: &mut CompleteDimension,
)
fn change( self, records: &mut R, cfg: &mut ColoredConfig, dims: &mut CompleteDimension, )
The function modificaties of records and a grid configuration.
Source§fn hint_change(&self) -> Option<Entity>
fn hint_change(&self) -> Option<Entity>
A hint whether an
TableOption
is going to change table layout. Read moreimpl<W: Copy> Copy for CellHeightIncrease<W>
impl<W: Eq> Eq for CellHeightIncrease<W>
impl<W> StructuralPartialEq for CellHeightIncrease<W>
Auto Trait Implementations§
impl<W> Freeze for CellHeightIncrease<W>where
W: Freeze,
impl<W> RefUnwindSafe for CellHeightIncrease<W>where
W: RefUnwindSafe,
impl<W> Send for CellHeightIncrease<W>where
W: Send,
impl<W> Sync for CellHeightIncrease<W>where
W: Sync,
impl<W> Unpin for CellHeightIncrease<W>where
W: Unpin,
impl<W> UnwindSafe for CellHeightIncrease<W>where
W: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more