Struct scroll_controller::ScrollSettings
source · pub struct ScrollSettings { /* private fields */ }
Expand description
Stores scroll settings.
Implementations
sourceimpl 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
sourceimpl Clone for ScrollSettings
impl Clone for ScrollSettings
sourcefn clone(&self) -> ScrollSettings
fn clone(&self) -> ScrollSettings
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 moreAuto Trait Implementations
impl RefUnwindSafe for ScrollSettings
impl Send for ScrollSettings
impl Sync for ScrollSettings
impl Unpin for ScrollSettings
impl UnwindSafe for ScrollSettings
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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