GroupBoxVariants

Trait GroupBoxVariants 

Source
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§

Source

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

Set the variant of the GroupBox.

Provided Methods§

Source

fn normal(self) -> Self

Set to use GroupBoxVariant::Normal to GroupBox.

Source

fn fill(self) -> Self

Set to use GroupBoxVariant::Fill to GroupBox.

Source

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.

Implementors§