pub struct ScrollSettings { /* private fields */ }
Expand description
Stores scroll settings.
Implementations§
Source§impl ScrollSettings
impl ScrollSettings
Sourcepub fn new() -> ScrollSettings
pub fn new() -> ScrollSettings
Creates a new ScrollSettings
object.
Sourcepub fn speed(self, val: f64) -> ScrollSettings
pub fn speed(self, val: f64) -> ScrollSettings
Sets scroll speed.
Trait Implementations§
Source§impl Clone for ScrollSettings
impl Clone for ScrollSettings
Source§fn clone(&self) -> ScrollSettings
fn clone(&self) -> ScrollSettings
Returns a copy 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 moreAuto Trait Implementations§
impl Freeze for ScrollSettings
impl RefUnwindSafe for ScrollSettings
impl Send for ScrollSettings
impl Sync for ScrollSettings
impl Unpin for ScrollSettings
impl UnwindSafe for ScrollSettings
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