#[non_exhaustive]pub enum HighlightSpacing {
Always,
WhenSelected,
Never,
}Expand description
Whether List’s highlight_symbol marker
column reserves width even when ListState::selected is
None.
HighlightSpacing::WhenSelected is the default: with nothing selected, the list renders no
marker column at all, and one only appears (shifting every item’s text right by the
symbol’s width) the moment something becomes selected. HighlightSpacing::Always reserves
the column unconditionally, so item text never shifts as selection comes and goes.
HighlightSpacing::Never never reserves it, so the symbol never renders even while
something is selected.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Always
Always reserve the marker column’s width, whether or not anything is selected.
WhenSelected
Reserve the marker column’s width only while
ListState::selected is Some.
Never
Never reserve the marker column’s width; the highlight symbol never renders.