Struct leptos_use::UseRafFnCallbackArgs
source · pub struct UseRafFnCallbackArgs {
pub delta: f64,
pub timestamp: f64,
}
Expand description
Type of the argument for the callback of use_raf_fn
.
Fields§
§delta: f64
Time elapsed between this and the last frame.
timestamp: f64
Time elapsed since the creation of the web page. See [MDN Docs](https://developer.mozilla.org/en-US/docs/Web/API/DOMHighResTimeStamp#the_time_origin Time origin).
Auto Trait Implementations§
impl Freeze for UseRafFnCallbackArgs
impl RefUnwindSafe for UseRafFnCallbackArgs
impl Send for UseRafFnCallbackArgs
impl Sync for UseRafFnCallbackArgs
impl Unpin for UseRafFnCallbackArgs
impl UnwindSafe for UseRafFnCallbackArgs
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