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