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§
Sourcefn with_variant(self, variant: ToggleVariant) -> Self
fn with_variant(self, variant: ToggleVariant) -> Self
Set the variant of the toggle.
Provided Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".