#[non_exhaustive]pub struct ToggleConfig {
pub label: AnyView,
pub toggle: Binding<bool>,
}Expand description
Configuration for the Toggle component.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.label: AnyViewThe label to display for the toggle.
toggle: Binding<bool>The binding to the toggle state.
Trait Implementations§
Source§impl Debug for ToggleConfig
impl Debug for ToggleConfig
Source§impl From<ToggleConfig> for Toggle
impl From<ToggleConfig> for Toggle
Source§fn from(value: ToggleConfig) -> Self
fn from(value: ToggleConfig) -> Self
Converts to this type from the input type.
Source§impl NativeView for ToggleConfig
impl NativeView for ToggleConfig
Source§fn stretch_axis(&self) -> StretchAxis
fn stretch_axis(&self) -> StretchAxis
Which axis (or axes) this view stretches to fill available space.
Auto Trait Implementations§
impl Freeze for ToggleConfig
impl !RefUnwindSafe for ToggleConfig
impl !Send for ToggleConfig
impl !Sync for ToggleConfig
impl Unpin for ToggleConfig
impl !UnwindSafe for ToggleConfig
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more