Enum ratatui::widgets::HighlightSpacing
source · pub enum HighlightSpacing {
Always,
WhenSelected,
Never,
}
Expand description
This option allows the user to configure the “highlight symbol” column width spacing
Variants§
Always
Always add spacing for the selection symbol column
With this variant, the column for the selection symbol will always be allocated, and so the table will never change size, regardless of if a row is selected or not
WhenSelected
Only add spacing for the selection symbol column if a row is selected
With this variant, the column for the selection symbol will only be allocated if there is a selection, causing the table to shift if selected / unselected
Never
Never add spacing to the selection symbol column, regardless of whether something is selected or not
This means that the highlight symbol will never be drawn
Trait Implementations§
source§impl Clone for HighlightSpacing
impl Clone for HighlightSpacing
source§fn clone(&self) -> HighlightSpacing
fn clone(&self) -> HighlightSpacing
Returns a copy 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 Debug for HighlightSpacing
impl Debug for HighlightSpacing
source§impl Default for HighlightSpacing
impl Default for HighlightSpacing
source§fn default() -> HighlightSpacing
fn default() -> HighlightSpacing
Returns the “default value” for a type. Read more
source§impl Display for HighlightSpacing
impl Display for HighlightSpacing
source§impl FromStr for HighlightSpacing
impl FromStr for HighlightSpacing
source§impl Hash for HighlightSpacing
impl Hash for HighlightSpacing
source§impl PartialEq for HighlightSpacing
impl PartialEq for HighlightSpacing
source§fn eq(&self, other: &HighlightSpacing) -> bool
fn eq(&self, other: &HighlightSpacing) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl TryFrom<&str> for HighlightSpacing
impl TryFrom<&str> for HighlightSpacing
impl Eq for HighlightSpacing
impl StructuralEq for HighlightSpacing
impl StructuralPartialEq for HighlightSpacing
Auto Trait Implementations§
impl RefUnwindSafe for HighlightSpacing
impl Send for HighlightSpacing
impl Sync for HighlightSpacing
impl Unpin for HighlightSpacing
impl UnwindSafe for HighlightSpacing
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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more