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§impl TryFrom<&str> for HighlightSpacing
impl TryFrom<&str> for HighlightSpacing
impl Eq for HighlightSpacing
impl StructuralPartialEq for HighlightSpacing
Auto Trait Implementations§
impl Freeze for HighlightSpacing
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> ToCompactString for Twhere
T: Display,
impl<T> ToCompactString for Twhere
T: Display,
Source§fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
Fallible version of
ToCompactString::to_compact_string()
Read moreSource§fn to_compact_string(&self) -> CompactString
fn to_compact_string(&self) -> CompactString
Converts the given value to a
CompactString
. Read more