Struct rat_widget::scrolled::ScrollStyle
source · pub struct ScrollStyle {
pub thumb_style: Option<Style>,
pub thumb_symbol: Option<&'static str>,
pub track_style: Option<Style>,
pub track_symbol: Option<&'static str>,
pub begin_style: Option<Style>,
pub begin_symbol: Option<&'static str>,
pub end_style: Option<Style>,
pub end_symbol: Option<&'static str>,
pub min_style: Option<Style>,
pub min_symbol: Option<&'static str>,
pub non_exhaustive: NonExhaustive,
}Expand description
Collected styles for the Scroll.
Fields§
§thumb_style: Option<Style>§thumb_symbol: Option<&'static str>§track_style: Option<Style>§track_symbol: Option<&'static str>§begin_style: Option<Style>§begin_symbol: Option<&'static str>§end_style: Option<Style>§end_symbol: Option<&'static str>§min_style: Option<Style>Style used when the scrollbar is not needed.
min_symbol: Option<&'static str>Symbol used instead of the scrollbar when it’s not needed.
non_exhaustive: NonExhaustiveTrait Implementations§
source§impl Clone for ScrollStyle
impl Clone for ScrollStyle
source§fn clone(&self) -> ScrollStyle
fn clone(&self) -> ScrollStyle
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 ScrollStyle
impl Debug for ScrollStyle
source§impl Default for ScrollStyle
impl Default for ScrollStyle
source§fn default() -> ScrollStyle
fn default() -> ScrollStyle
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ScrollStyle
impl RefUnwindSafe for ScrollStyle
impl Send for ScrollStyle
impl Sync for ScrollStyle
impl Unpin for ScrollStyle
impl UnwindSafe for ScrollStyle
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)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