Struct leptos_use::UseElementBoundingReturn
source · pub struct UseElementBoundingReturn<F>{
pub height: Signal<f64>,
pub width: Signal<f64>,
pub left: Signal<f64>,
pub right: Signal<f64>,
pub top: Signal<f64>,
pub bottom: Signal<f64>,
pub x: Signal<f64>,
pub y: Signal<f64>,
pub update: F,
}
Expand description
Return type of use_element_bounding
.
Fields§
§height: Signal<f64>
Reactive version of BoudingClientRect.height
width: Signal<f64>
Reactive version of BoudingClientRect.width
left: Signal<f64>
Reactive version of BoudingClientRect.left
right: Signal<f64>
Reactive version of BoudingClientRect.right
top: Signal<f64>
Reactive version of BoudingClientRect.top
bottom: Signal<f64>
Reactive version of BoudingClientRect.bottom
x: Signal<f64>
Reactive version of BoudingClientRect.x
y: Signal<f64>
Reactive version of BoudingClientRect.y
update: F
Function to re-evaluate get_bounding_client_rect()
and update the signals.
Auto Trait Implementations§
impl<F> Freeze for UseElementBoundingReturn<F>where
F: Freeze,
impl<F> !RefUnwindSafe for UseElementBoundingReturn<F>
impl<F> !Send for UseElementBoundingReturn<F>
impl<F> !Sync for UseElementBoundingReturn<F>
impl<F> Unpin for UseElementBoundingReturn<F>where
F: Unpin,
impl<F> !UnwindSafe for UseElementBoundingReturn<F>
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