pub enum ToggleVariant {
Switch,
Pill,
Square,
Inset,
}Expand description
Toggle visual archetype. Most styles compose Switch; the others give designers explicit alternates without forking the widget.
Variants§
Switch
Capsule track + circular knob that slides on (the IntUI default and most other 2026-era look-and-feels).
Pill
Pill-shaped track without a sliding knob — a colored / muted fill toggles instead.
Square
Square track with a square knob (brutalist / 8-bit aesthetic).
Inset
Inset toggle — the entire control is a flat surface that recesses on activation.
Trait Implementations§
Source§impl Clone for ToggleVariant
impl Clone for ToggleVariant
Source§fn clone(&self) -> ToggleVariant
fn clone(&self) -> ToggleVariant
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ToggleVariant
Source§impl Debug for ToggleVariant
impl Debug for ToggleVariant
Source§impl Default for ToggleVariant
impl Default for ToggleVariant
Source§fn default() -> ToggleVariant
fn default() -> ToggleVariant
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ToggleVariant
impl<'de> Deserialize<'de> for ToggleVariant
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ToggleVariant
Source§impl Hash for ToggleVariant
impl Hash for ToggleVariant
Source§impl PartialEq for ToggleVariant
impl PartialEq for ToggleVariant
Source§impl Serialize for ToggleVariant
impl Serialize for ToggleVariant
impl StructuralPartialEq for ToggleVariant
Auto Trait Implementations§
impl Freeze for ToggleVariant
impl RefUnwindSafe for ToggleVariant
impl Send for ToggleVariant
impl Sync for ToggleVariant
impl Unpin for ToggleVariant
impl UnsafeUnpin for ToggleVariant
impl UnwindSafe for ToggleVariant
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