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

Provided Methods§

Source

fn ghost(self) -> Self

Source

fn outline(self) -> Self

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§