pub struct ScrollBarStyle {
pub track: StyledChar,
pub thumb: StyledChar,
}
Expand description
A scrollbar style defined by two styled chars, one for the track, and one for the thumb.
For the default styling only the fg color is defined and the char is ▐ but everything can be changed.
Fields§
§track: StyledChar
§thumb: StyledChar
Implementations§
Trait Implementations§
source§impl Clone for ScrollBarStyle
impl Clone for ScrollBarStyle
source§fn clone(&self) -> ScrollBarStyle
fn clone(&self) -> ScrollBarStyle
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 ScrollBarStyle
impl Debug for ScrollBarStyle
source§impl Default for ScrollBarStyle
impl Default for ScrollBarStyle
source§impl From<StyledChar> for ScrollBarStyle
impl From<StyledChar> for ScrollBarStyle
source§fn from(sc: StyledChar) -> Self
fn from(sc: StyledChar) -> Self
Converts to this type from the input type.
source§impl PartialEq for ScrollBarStyle
impl PartialEq for ScrollBarStyle
impl StructuralPartialEq for ScrollBarStyle
Auto Trait Implementations§
impl Freeze for ScrollBarStyle
impl RefUnwindSafe for ScrollBarStyle
impl Send for ScrollBarStyle
impl Sync for ScrollBarStyle
impl Unpin for ScrollBarStyle
impl UnwindSafe for ScrollBarStyle
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
)