pub struct SwitchProps<'a> {
pub enabled: bool,
pub ontoggled: EventHandler<'a, ()>,
}
Expand description
Whether the Switch
is enabled or not.
Handler for the ontoggled
event.
Create a builder for building SwitchProps
.
On the builder, call .enabled(...)
, .ontoggled(...)
to set the values of the fields.
Finally, call .build()
to create the instance of SwitchProps
.
The type of the builder for this component.
Used to create “in-progress” versions of the props.
An indication if these props are can be memoized automatically.
Create a builder for this component.
Memoization can only happen if the props are valid for the ’static lifetime
Read more
Immutably borrows from an owned value.
Read more
Mutably borrows from an owned value.
Read more
Returns the argument unchanged.
Instruments this type with the provided
Span
, returning an
Instrumented
wrapper.
Read more
Calls U::from(self)
.
That is, this conversion is whatever the implementation of
From<T> for U
chooses to do.
The alignment of pointer.
The type for initializers.
Initializes a with the given initializer.
Read more
Mutably dereferences the given pointer.
Read more
Drops the object pointed to by the given pointer.
Read more
Converts to T
by calling Into<T>::into
.
Tries to convert to T
by calling TryInto<T>::try_into
.
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.