Struct leptos_use::UseElementSizeOptions
source · pub struct UseElementSizeOptions {
pub box_: Option<ResizeObserverBoxOptions>,
/* private fields */
}
Expand description
Options for use_element_size_with_options
.
Fields§
§box_: Option<ResizeObserverBoxOptions>
The box that is used to determine the dimensions of the target. Defaults to ContentBox
.
Implementations§
source§impl UseElementSizeOptions
impl UseElementSizeOptions
sourcepub fn initial_size(self, value: Size) -> Self
pub fn initial_size(self, value: Size) -> Self
Initial size returned before any measurements on the target
are done. Also the value reported
at first when the target
is a signal and changes.
Trait Implementations§
source§impl Default for UseElementSizeOptions
impl Default for UseElementSizeOptions
source§fn default() -> UseElementSizeOptions
fn default() -> UseElementSizeOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for UseElementSizeOptions
impl RefUnwindSafe for UseElementSizeOptions
impl Send for UseElementSizeOptions
impl Sync for UseElementSizeOptions
impl Unpin for UseElementSizeOptions
impl UnwindSafe for UseElementSizeOptions
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