pub struct ScrollSmoother { /* private fields */ }Expand description
Momentum-style scroll smoothing helper.
Implementations§
Source§impl ScrollSmoother
impl ScrollSmoother
Sourcepub fn is_settled(&self) -> bool
pub fn is_settled(&self) -> bool
Whether smoothed scroll has settled.
Trait Implementations§
Source§impl Clone for ScrollSmoother
impl Clone for ScrollSmoother
Source§fn clone(&self) -> ScrollSmoother
fn clone(&self) -> ScrollSmoother
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 ScrollSmoother
impl Debug for ScrollSmoother
Source§impl Default for ScrollSmoother
impl Default for ScrollSmoother
Source§impl From<ScrollSmoother> for JsValue
impl From<ScrollSmoother> for JsValue
Source§fn from(value: ScrollSmoother) -> Self
fn from(value: ScrollSmoother) -> Self
Converts to this type from the input type.
Source§impl FromWasmAbi for ScrollSmoother
impl FromWasmAbi for ScrollSmoother
Source§impl IntoWasmAbi for ScrollSmoother
impl IntoWasmAbi for ScrollSmoother
Source§impl LongRefFromWasmAbi for ScrollSmoother
impl LongRefFromWasmAbi for ScrollSmoother
Source§type Abi = WasmPtr<WasmRefCell<ScrollSmoother>>
type Abi = WasmPtr<WasmRefCell<ScrollSmoother>>
Same as
RefFromWasmAbi::AbiSource§type Anchor = RcRef<ScrollSmoother>
type Anchor = RcRef<ScrollSmoother>
Same as
RefFromWasmAbi::AnchorSource§unsafe fn long_ref_from_abi(js: Self::Abi) -> Self::Anchor
unsafe fn long_ref_from_abi(js: Self::Abi) -> Self::Anchor
Same as
RefFromWasmAbi::ref_from_abiSource§impl OptionFromWasmAbi for ScrollSmoother
impl OptionFromWasmAbi for ScrollSmoother
Source§impl OptionIntoWasmAbi for ScrollSmoother
impl OptionIntoWasmAbi for ScrollSmoother
Source§impl RefFromWasmAbi for ScrollSmoother
impl RefFromWasmAbi for ScrollSmoother
Source§type Abi = WasmPtr<WasmRefCell<ScrollSmoother>>
type Abi = WasmPtr<WasmRefCell<ScrollSmoother>>
The Wasm ABI type references to
Self are recovered from.Source§type Anchor = RcRef<ScrollSmoother>
type Anchor = RcRef<ScrollSmoother>
The type that holds the reference to
Self for the duration of the
invocation of the function that has an &Self parameter. This is
required to ensure that the lifetimes don’t persist beyond one function
call, and so that they remain anonymous.Source§impl RefMutFromWasmAbi for ScrollSmoother
impl RefMutFromWasmAbi for ScrollSmoother
Source§type Abi = WasmPtr<WasmRefCell<ScrollSmoother>>
type Abi = WasmPtr<WasmRefCell<ScrollSmoother>>
Same as
RefFromWasmAbi::AbiSource§type Anchor = RcRefMut<ScrollSmoother>
type Anchor = RcRefMut<ScrollSmoother>
Same as
RefFromWasmAbi::AnchorSource§unsafe fn ref_mut_from_abi(js: Self::Abi) -> Self::Anchor
unsafe fn ref_mut_from_abi(js: Self::Abi) -> Self::Anchor
Same as
RefFromWasmAbi::ref_from_abiSource§impl TryFromJsValue for ScrollSmoother
impl TryFromJsValue for ScrollSmoother
Source§impl VectorFromWasmAbi for ScrollSmoother
impl VectorFromWasmAbi for ScrollSmoother
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[ScrollSmoother]>
Source§impl VectorIntoWasmAbi for ScrollSmoother
impl VectorIntoWasmAbi for ScrollSmoother
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[ScrollSmoother]>) -> Self::Abi
Source§impl WasmDescribeVector for ScrollSmoother
impl WasmDescribeVector for ScrollSmoother
impl SupportsConstructor for ScrollSmoother
impl SupportsInstanceProperty for ScrollSmoother
impl SupportsStaticProperty for ScrollSmoother
Auto Trait Implementations§
impl Freeze for ScrollSmoother
impl RefUnwindSafe for ScrollSmoother
impl Send for ScrollSmoother
impl Sync for ScrollSmoother
impl Unpin for ScrollSmoother
impl UnsafeUnpin for ScrollSmoother
impl UnwindSafe for ScrollSmoother
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> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
Source§type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
Same as
IntoWasmAbi::AbiSource§fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
Same as
IntoWasmAbi::into_abi, except that it may throw and never
return in the case of Err.