Skip to main content

ToggleVariants

Trait ToggleVariants 

Source
pub trait ToggleVariants: Sized {
    // Required method
    fn with_variant(self, variant: ToggleVariant) -> Self;

    // Provided methods
    fn ghost(self) -> Self { ... }
    fn outline(self) -> Self { ... }
}

Required Methods§

Source

fn with_variant(self, variant: ToggleVariant) -> Self

Set the variant of the toggle.

Provided Methods§

Source

fn ghost(self) -> Self

Set the variant to ghost.

Source

fn outline(self) -> Self

Set the variant to outline.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§