Struct freya::prelude::SwitchProps
source · pub struct SwitchProps<'a> {
pub enabled: bool,
pub ontoggled: EventHandler<'a, ()>,
}Expand description
Switch component properties.
Fields§
§enabled: boolWhether the Switch is enabled or not.
ontoggled: EventHandler<'a, ()>Handler for the ontoggled event.
Implementations§
Trait Implementations§
source§impl<'a> Properties for SwitchProps<'a>
impl<'a> Properties for SwitchProps<'a>
§type Builder = SwitchPropsBuilder<'a, ((), ())>
type Builder = SwitchPropsBuilder<'a, ((), ())>
The type of the builder for this component.
Used to create “in-progress” versions of the props.
source§fn builder() -> <SwitchProps<'a> as Properties>::Builder
fn builder() -> <SwitchProps<'a> as Properties>::Builder
Create a builder for this component.
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for SwitchProps<'a>
impl<'a> !Send for SwitchProps<'a>
impl<'a> !Sync for SwitchProps<'a>
impl<'a> Unpin for SwitchProps<'a>
impl<'a> !UnwindSafe for SwitchProps<'a>
Blanket Implementations§
§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
§impl<F, W, T, D> Deserialize<With<T, W>, D> for Fwhere
W: DeserializeWith<F, T, D>,
D: Fallible + ?Sized,
F: ?Sized,
impl<F, W, T, D> Deserialize<With<T, W>, D> for Fwhere W: DeserializeWith<F, T, D>, D: Fallible + ?Sized, F: ?Sized,
§fn deserialize(
&self,
deserializer: &mut D
) -> Result<With<T, W>, <D as Fallible>::Error>
fn deserialize( &self, deserializer: &mut D ) -> Result<With<T, W>, <D as Fallible>::Error>
Deserializes using the given deserializer