Struct tabled::settings::height::TableHeightLimit
source · pub struct TableHeightLimit<W = usize, P = PriorityNone> { /* private fields */ }
Available on crate feature
std
only.Expand description
A modification of a table to decrease the table height.
Implementations§
source§impl<W> TableHeightLimit<W, PriorityNone>
impl<W> TableHeightLimit<W, PriorityNone>
sourcepub fn new(height: W) -> Selfwhere
W: Measurement<Height>,
pub fn new(height: W) -> Selfwhere
W: Measurement<Height>,
Creates a new object.
sourcepub fn priority<P>(self) -> TableHeightLimit<W, P>where
P: Peaker,
pub fn priority<P>(self) -> TableHeightLimit<W, P>where
P: Peaker,
Sets a different priority logic.
Trait Implementations§
source§impl<R, W, P> TableOption<R, ColoredConfig, CompleteDimensionVecRecords<'_>> for TableHeightLimit<W, P>where
W: Measurement<Height>,
P: Peaker + Clone,
R: Records + ExactRecords + PeekableRecords + RecordsMut<String>,
for<'a> &'a R: Records,
for<'a> <<&'a R as Records>::Iter as IntoRecords>::Cell: AsRef<str>,
impl<R, W, P> TableOption<R, ColoredConfig, CompleteDimensionVecRecords<'_>> for TableHeightLimit<W, P>where
W: Measurement<Height>,
P: Peaker + Clone,
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,
dims: &mut CompleteDimensionVecRecords<'_>
)
fn change( self, records: &mut R, cfg: &mut ColoredConfig, dims: &mut CompleteDimensionVecRecords<'_> )
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 moreAuto Trait Implementations§
impl<W, P> RefUnwindSafe for TableHeightLimit<W, P>where
P: RefUnwindSafe,
W: RefUnwindSafe,
impl<W, P> Send for TableHeightLimit<W, P>
impl<W, P> Sync for TableHeightLimit<W, P>
impl<W, P> Unpin for TableHeightLimit<W, P>
impl<W, P> UnwindSafe for TableHeightLimit<W, P>where
P: UnwindSafe,
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