pub struct ScrollOffset {
pub left: f64,
pub top: f64,
pub right: f64,
pub bottom: f64,
}
Expand description
Threshold in pixels when we consider a side to have arrived (UseScrollReturn::arrived_state
).
Fields§
§left: f64
§top: f64
§right: f64
§bottom: f64
Implementations§
Source§impl ScrollOffset
impl ScrollOffset
Sourcepub fn set_direction(self, direction: Direction, value: f64) -> Self
pub fn set_direction(self, direction: Direction, value: f64) -> Self
Sets the value of the provided direction
Trait Implementations§
Source§impl Clone for ScrollOffset
impl Clone for ScrollOffset
Source§fn clone(&self) -> ScrollOffset
fn clone(&self) -> ScrollOffset
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 moreSource§impl Debug for ScrollOffset
impl Debug for ScrollOffset
Source§impl Default for ScrollOffset
impl Default for ScrollOffset
Source§fn default() -> ScrollOffset
fn default() -> ScrollOffset
Returns the “default value” for a type. Read more
impl Copy for ScrollOffset
Auto Trait Implementations§
impl Freeze for ScrollOffset
impl RefUnwindSafe for ScrollOffset
impl Send for ScrollOffset
impl Sync for ScrollOffset
impl Unpin for ScrollOffset
impl UnwindSafe for ScrollOffset
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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