#[repr(C)]pub enum StyleScrollbarGutter {
Auto = 0,
Stable = 1,
StableBothEdges = 2,
}Expand description
Represents the scrollbar-gutter CSS property.
Controls whether space is reserved for the scrollbar, preventing layout shifts when content overflows.
Variants§
Auto = 0
No scrollbar gutter is reserved.
Stable = 1
Space is reserved for the scrollbar on one edge.
StableBothEdges = 2
Space is reserved for the scrollbar on both edges.
Trait Implementations§
Source§impl Clone for StyleScrollbarGutter
impl Clone for StyleScrollbarGutter
Source§fn clone(&self) -> StyleScrollbarGutter
fn clone(&self) -> StyleScrollbarGutter
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 Debug for StyleScrollbarGutter
impl Debug for StyleScrollbarGutter
Source§impl Default for StyleScrollbarGutter
impl Default for StyleScrollbarGutter
Source§fn default() -> StyleScrollbarGutter
fn default() -> StyleScrollbarGutter
Returns the “default value” for a type. Read more
Source§impl FormatAsRustCode for StyleScrollbarGutter
impl FormatAsRustCode for StyleScrollbarGutter
fn format_as_rust_code(&self, _tabs: usize) -> String
Source§impl From<StyleScrollbarGutter> for CssProperty
impl From<StyleScrollbarGutter> for CssProperty
Source§fn from(e: StyleScrollbarGutter) -> Self
fn from(e: StyleScrollbarGutter) -> Self
Converts to this type from the input type.
Source§impl Hash for StyleScrollbarGutter
impl Hash for StyleScrollbarGutter
Source§impl Ord for StyleScrollbarGutter
impl Ord for StyleScrollbarGutter
Source§fn cmp(&self, other: &StyleScrollbarGutter) -> Ordering
fn cmp(&self, other: &StyleScrollbarGutter) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for StyleScrollbarGutter
impl PartialEq for StyleScrollbarGutter
Source§fn eq(&self, other: &StyleScrollbarGutter) -> bool
fn eq(&self, other: &StyleScrollbarGutter) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for StyleScrollbarGutter
impl PartialOrd for StyleScrollbarGutter
Source§impl PrintAsCssValue for StyleScrollbarGutter
impl PrintAsCssValue for StyleScrollbarGutter
fn print_as_css_value(&self) -> String
impl Copy for StyleScrollbarGutter
impl Eq for StyleScrollbarGutter
impl StructuralPartialEq for StyleScrollbarGutter
Auto Trait Implementations§
impl Freeze for StyleScrollbarGutter
impl RefUnwindSafe for StyleScrollbarGutter
impl Send for StyleScrollbarGutter
impl Sync for StyleScrollbarGutter
impl Unpin for StyleScrollbarGutter
impl UnsafeUnpin for StyleScrollbarGutter
impl UnwindSafe for StyleScrollbarGutter
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