pub trait GroupBoxVariants: Sized {
// Required method
fn with_variant(self, variant: GroupBoxVariant) -> Self;
// Provided methods
fn normal(self) -> Self { ... }
fn fill(self) -> Self { ... }
fn outline(self) -> Self { ... }
}Expand description
Trait to add GroupBox variant methods to elements.
Required Methods§
Sourcefn with_variant(self, variant: GroupBoxVariant) -> Self
fn with_variant(self, variant: GroupBoxVariant) -> Self
Set the variant of the GroupBox.
Provided Methods§
Sourcefn normal(self) -> Self
fn normal(self) -> Self
Set to use GroupBoxVariant::Normal to GroupBox.
Sourcefn fill(self) -> Self
fn fill(self) -> Self
Set to use GroupBoxVariant::Fill to GroupBox.
Sourcefn outline(self) -> Self
fn outline(self) -> Self
Set to use GroupBoxVariant::Outline to GroupBox.
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.