pub struct SliderStyle {Show 14 fields
pub style: Style,
pub block: Option<Block<'static>>,
pub border_style: Option<Style>,
pub title_style: Option<Style>,
pub bounds: Option<Style>,
pub knob: Option<Style>,
pub focus: Option<Style>,
pub text_align: Option<Alignment>,
pub lower_bound: Option<&'static str>,
pub upper_bound: Option<&'static str>,
pub track_char: Option<&'static str>,
pub vertical_knob: Option<&'static str>,
pub horizontal_knob: Option<&'static str>,
pub non_exhaustive: NonExhaustive,
}Fields§
§style: StyleBase style.
block: Option<Block<'static>>Border
border_style: Option<Style>§title_style: Option<Style>§bounds: Option<Style>Style for the upper/lower bounds text.
knob: Option<Style>Style for the knob.
focus: Option<Style>Style when focused.
text_align: Option<Alignment>Alignment for all text.
lower_bound: Option<&'static str>Text string for the lower bound. Can contain newlines.
upper_bound: Option<&'static str>Text string for the upper bound. Can contain newlines.
track_char: Option<&'static str>Fill char for the track.
vertical_knob: Option<&'static str>Text for the knob in vertical mode.
horizontal_knob: Option<&'static str>Text for the knob in horizontal mode.
non_exhaustive: NonExhaustiveTrait Implementations§
Source§impl Clone for SliderStyle
impl Clone for SliderStyle
Source§fn clone(&self) -> SliderStyle
fn clone(&self) -> SliderStyle
Returns a duplicate 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 SliderStyle
impl Debug for SliderStyle
Auto Trait Implementations§
impl Freeze for SliderStyle
impl RefUnwindSafe for SliderStyle
impl Send for SliderStyle
impl Sync for SliderStyle
impl Unpin for SliderStyle
impl UnwindSafe for SliderStyle
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<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 more