#[repr(C)]pub enum ScrollIntoViewBehavior {
Auto = 0,
Instant = 1,
Smooth = 2,
}Expand description
Scroll animation behavior for scrollIntoView API
This is distinct from the CSS scroll-behavior property, as it also
supports the Instant option which CSS does not have.
Variants§
Auto = 0
Respect CSS scroll-behavior property (default)
Instant = 1
Immediate jump without animation
Smooth = 2
Animated smooth scroll
Trait Implementations§
Source§impl Clone for ScrollIntoViewBehavior
impl Clone for ScrollIntoViewBehavior
Source§fn clone(&self) -> ScrollIntoViewBehavior
fn clone(&self) -> ScrollIntoViewBehavior
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 Debug for ScrollIntoViewBehavior
impl Debug for ScrollIntoViewBehavior
Source§impl Default for ScrollIntoViewBehavior
impl Default for ScrollIntoViewBehavior
Source§fn default() -> ScrollIntoViewBehavior
fn default() -> ScrollIntoViewBehavior
Returns the “default value” for a type. Read more
Source§impl Hash for ScrollIntoViewBehavior
impl Hash for ScrollIntoViewBehavior
Source§impl Ord for ScrollIntoViewBehavior
impl Ord for ScrollIntoViewBehavior
Source§fn cmp(&self, other: &ScrollIntoViewBehavior) -> Ordering
fn cmp(&self, other: &ScrollIntoViewBehavior) -> 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 PartialEq for ScrollIntoViewBehavior
impl PartialEq for ScrollIntoViewBehavior
Source§impl PartialOrd for ScrollIntoViewBehavior
impl PartialOrd for ScrollIntoViewBehavior
impl Copy for ScrollIntoViewBehavior
impl Eq for ScrollIntoViewBehavior
impl StructuralPartialEq for ScrollIntoViewBehavior
Auto Trait Implementations§
impl Freeze for ScrollIntoViewBehavior
impl RefUnwindSafe for ScrollIntoViewBehavior
impl Send for ScrollIntoViewBehavior
impl Sync for ScrollIntoViewBehavior
impl Unpin for ScrollIntoViewBehavior
impl UnwindSafe for ScrollIntoViewBehavior
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> 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 more