pub trait WithScrollbar: Sized {
type Output;
// Required method
fn custom_scrollbars<T>(
self,
config: Scrollbars<T>,
window: &mut Window,
cx: &mut App,
) -> Self::Output
where T: ScrollableHandle;
// Provided method
fn vertical_scrollbar_for<ScrollHandle: ScrollableHandle + Clone>(
self,
scroll_handle: &ScrollHandle,
window: &mut Window,
cx: &mut App,
) -> Self::Output { ... }
}Required Associated Types§
Required Methods§
fn custom_scrollbars<T>(
self,
config: Scrollbars<T>,
window: &mut Window,
cx: &mut App,
) -> Self::Outputwhere
T: ScrollableHandle,
Provided Methods§
fn vertical_scrollbar_for<ScrollHandle: ScrollableHandle + Clone>( self, scroll_handle: &ScrollHandle, window: &mut Window, cx: &mut App, ) -> Self::Output
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".