pub enum ScrollInitialTargetStyleValue {
None(Ident),
Nearest(Ident),
}Expand description
Represents the style value for scroll-initial-target as defined in css-scroll-snap-2.
The scroll-initial-target: nearest CSS declaration sets the initial scroll position of its scroll container to the top of the element, much like scrolling to a URL fragment.
The grammar is defined as:
none | nearestVariants§
Trait Implementations§
Source§impl Clone for ScrollInitialTargetStyleValue
impl Clone for ScrollInitialTargetStyleValue
Source§fn clone(&self) -> ScrollInitialTargetStyleValue
fn clone(&self) -> ScrollInitialTargetStyleValue
Returns a duplicate 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 Hash for ScrollInitialTargetStyleValue
impl Hash for ScrollInitialTargetStyleValue
Source§impl Ord for ScrollInitialTargetStyleValue
impl Ord for ScrollInitialTargetStyleValue
Source§fn cmp(&self, other: &ScrollInitialTargetStyleValue) -> Ordering
fn cmp(&self, other: &ScrollInitialTargetStyleValue) -> Ordering
1.21.0 · 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<'a> Parse<'a> for ScrollInitialTargetStyleValue
impl<'a> Parse<'a> for ScrollInitialTargetStyleValue
Source§impl PartialEq for ScrollInitialTargetStyleValue
impl PartialEq for ScrollInitialTargetStyleValue
Source§fn eq(&self, other: &ScrollInitialTargetStyleValue) -> bool
fn eq(&self, other: &ScrollInitialTargetStyleValue) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for ScrollInitialTargetStyleValue
impl PartialOrd for ScrollInitialTargetStyleValue
Source§impl<'a> Peek<'a> for ScrollInitialTargetStyleValue
impl<'a> Peek<'a> for ScrollInitialTargetStyleValue
Source§impl ToCursors for ScrollInitialTargetStyleValue
impl ToCursors for ScrollInitialTargetStyleValue
fn to_cursors(&self, s: &mut impl CursorSink)
impl Eq for ScrollInitialTargetStyleValue
impl StructuralPartialEq for ScrollInitialTargetStyleValue
Auto Trait Implementations§
impl Freeze for ScrollInitialTargetStyleValue
impl RefUnwindSafe for ScrollInitialTargetStyleValue
impl Send for ScrollInitialTargetStyleValue
impl Sync for ScrollInitialTargetStyleValue
impl Unpin for ScrollInitialTargetStyleValue
impl UnwindSafe for ScrollInitialTargetStyleValue
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