Enum web_sys::ScrollRestoration
source · [−]pub enum ScrollRestoration {
Auto,
Manual,
// some variants omitted
}
Expand description
The ScrollRestoration
enum.
This API requires the following crate features to be activated: ScrollRestoration
Variants
Auto
Manual
Implementations
sourceimpl ScrollRestoration
impl ScrollRestoration
pub fn from_js_value(obj: &JsValue) -> Option<ScrollRestoration>
Trait Implementations
sourceimpl Clone for ScrollRestoration
impl Clone for ScrollRestoration
sourcefn clone(&self) -> ScrollRestoration
fn clone(&self) -> ScrollRestoration
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for ScrollRestoration
impl Debug for ScrollRestoration
sourceimpl From<ScrollRestoration> for JsValue
impl From<ScrollRestoration> for JsValue
sourcefn from(obj: ScrollRestoration) -> JsValue
fn from(obj: ScrollRestoration) -> JsValue
Converts to this type from the input type.
sourceimpl FromWasmAbi for ScrollRestoration
impl FromWasmAbi for ScrollRestoration
sourceimpl IntoWasmAbi for ScrollRestoration
impl IntoWasmAbi for ScrollRestoration
sourceimpl OptionFromWasmAbi for ScrollRestoration
impl OptionFromWasmAbi for ScrollRestoration
sourceimpl OptionIntoWasmAbi for ScrollRestoration
impl OptionIntoWasmAbi for ScrollRestoration
sourceimpl WasmDescribe for ScrollRestoration
impl WasmDescribe for ScrollRestoration
impl Copy for ScrollRestoration
impl Eq for ScrollRestoration
impl StructuralEq for ScrollRestoration
impl StructuralPartialEq for ScrollRestoration
Auto Trait Implementations
impl RefUnwindSafe for ScrollRestoration
impl Send for ScrollRestoration
impl Sync for ScrollRestoration
impl Unpin for ScrollRestoration
impl UnwindSafe for ScrollRestoration
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ReturnWasmAbi for T where
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for T where
T: IntoWasmAbi,
type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
Same as IntoWasmAbi::Abi
sourcefn 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
. Read more