pub enum ScrollbarGutter {
Auto,
Stable,
StableBothEdges,
}Expand description
Controls whether space is reserved for a scrollbar even when it isn’t shown, so content doesn’t shift when a scrollbar appears/disappears.
Variants§
Auto
Reserves scrollbar-width space on the scrollbar’s own edge whenever that axis is scrollable. The reserved amount is fixed to the resting thickness, so it’s already there before the scrollbar is hovered and never grows or shrinks afterward.
Stable
Reserves scrollbar-width space on the scrollbar’s own edge.
StableBothEdges
Reserves scrollbar-width space on both edges, keeping content centered regardless of which side the scrollbar is drawn on.
Trait Implementations§
Source§impl Clone for ScrollbarGutter
impl Clone for ScrollbarGutter
Source§fn clone(&self) -> ScrollbarGutter
fn clone(&self) -> ScrollbarGutter
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 moreimpl Copy for ScrollbarGutter
Source§impl Debug for ScrollbarGutter
impl Debug for ScrollbarGutter
Source§impl Default for ScrollbarGutter
impl Default for ScrollbarGutter
Source§fn default() -> ScrollbarGutter
fn default() -> ScrollbarGutter
Returns the “default value” for a type. Read more
impl Eq for ScrollbarGutter
Source§impl PartialEq for ScrollbarGutter
impl PartialEq for ScrollbarGutter
impl StructuralPartialEq for ScrollbarGutter
Auto Trait Implementations§
impl Freeze for ScrollbarGutter
impl RefUnwindSafe for ScrollbarGutter
impl Send for ScrollbarGutter
impl Sync for ScrollbarGutter
impl Unpin for ScrollbarGutter
impl UnsafeUnpin for ScrollbarGutter
impl UnwindSafe for ScrollbarGutter
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