pub struct ScrollbarStyles { /* private fields */ }Expand description
Typed paint styles supported by Scrollbar.
Implementations§
Source§impl ScrollbarStyles
impl ScrollbarStyles
pub fn track( self, build: impl FnOnce(ScrollbarTrackStyle) -> ScrollbarTrackStyle, ) -> ScrollbarStyles
pub fn track_hover( self, build: impl FnOnce(ScrollbarTrackStyle) -> ScrollbarTrackStyle, ) -> ScrollbarStyles
pub fn track_active( self, build: impl FnOnce(ScrollbarTrackStyle) -> ScrollbarTrackStyle, ) -> ScrollbarStyles
pub fn thumb( self, build: impl FnOnce(ScrollbarThumbStyle) -> ScrollbarThumbStyle, ) -> ScrollbarStyles
pub fn thumb_hover( self, build: impl FnOnce(ScrollbarThumbStyle) -> ScrollbarThumbStyle, ) -> ScrollbarStyles
pub fn thumb_active( self, build: impl FnOnce(ScrollbarThumbStyle) -> ScrollbarThumbStyle, ) -> ScrollbarStyles
Trait Implementations§
Source§impl Clone for ScrollbarStyles
impl Clone for ScrollbarStyles
Source§fn clone(&self) -> ScrollbarStyles
fn clone(&self) -> ScrollbarStyles
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for ScrollbarStyles
impl Default for ScrollbarStyles
Source§fn default() -> ScrollbarStyles
fn default() -> ScrollbarStyles
Returns the “default value” for a type. Read more
Source§impl FluentBuilder for ScrollbarStyles
impl FluentBuilder for ScrollbarStyles
Source§fn map<U>(self, f: impl FnOnce(Self) -> U) -> Uwhere
Self: Sized,
fn map<U>(self, f: impl FnOnce(Self) -> U) -> Uwhere
Self: Sized,
Imperatively modify self with the given closure.
Source§fn when(self, condition: bool, then: impl FnOnce(Self) -> Self) -> Selfwhere
Self: Sized,
fn when(self, condition: bool, then: impl FnOnce(Self) -> Self) -> Selfwhere
Self: Sized,
Conditionally modify self with the given closure.
Source§fn when_else(
self,
condition: bool,
then: impl FnOnce(Self) -> Self,
else_fn: impl FnOnce(Self) -> Self,
) -> Selfwhere
Self: Sized,
fn when_else(
self,
condition: bool,
then: impl FnOnce(Self) -> Self,
else_fn: impl FnOnce(Self) -> Self,
) -> Selfwhere
Self: Sized,
Conditionally modify self with the given closure.
Auto Trait Implementations§
impl Freeze for ScrollbarStyles
impl RefUnwindSafe for ScrollbarStyles
impl Send for ScrollbarStyles
impl Sync for ScrollbarStyles
impl Unpin for ScrollbarStyles
impl UnsafeUnpin for ScrollbarStyles
impl UnwindSafe for ScrollbarStyles
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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> Pointable for T
impl<T> Pointable for T
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian().