Enum ratatui::layout::SegmentSize
source · pub enum SegmentSize {
EvenDistribution,
LastTakesRemainder,
None,
}
unstable-segment-size
only.Expand description
Option for segment size preferences
This controls how the space is distributed when the constraints are satisfied. By default, the
last chunk is expanded to fill the remaining space, but this can be changed to prefer equal
chunks or to not distribute extra space at all (which is the default used for laying out the
columns for Table
widgets).
Note: If you’re using this feature please help us come up with a good name. See Issue #536 for more information.
Availability
This API is marked as unstable and is only available when the unstable-segment-size
crate feature is enabled. This comes with no stability guarantees, and could be changed or removed at any time.
Variants§
EvenDistribution
prefer equal chunks if other constraints are all satisfied
LastTakesRemainder
the last chunk is expanded to fill the remaining space
None
extra space is not distributed
Trait Implementations§
source§impl Clone for SegmentSize
impl Clone for SegmentSize
source§fn clone(&self) -> SegmentSize
fn clone(&self) -> SegmentSize
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for SegmentSize
impl Debug for SegmentSize
source§impl Default for SegmentSize
impl Default for SegmentSize
source§fn default() -> SegmentSize
fn default() -> SegmentSize
source§impl Display for SegmentSize
impl Display for SegmentSize
source§impl FromStr for SegmentSize
impl FromStr for SegmentSize
source§impl Hash for SegmentSize
impl Hash for SegmentSize
source§impl PartialEq for SegmentSize
impl PartialEq for SegmentSize
source§fn eq(&self, other: &SegmentSize) -> bool
fn eq(&self, other: &SegmentSize) -> bool
self
and other
values to be equal, and is used
by ==
.