Struct leptos_use::ScrollOffset
source · 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> 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