Skip to main content

Sizable

Trait Sizable 

Source
pub trait Sizable: Sized {
    // Required method
    fn with_size(self, size: Size) -> Self;

    // Provided methods
    fn xsmall(self) -> Self { ... }
    fn small(self) -> Self { ... }
    fn medium(self) -> Self { ... }
    fn large(self) -> Self { ... }
}
Expand description

Shared component API for size configuration.

Required Methods§

Source

fn with_size(self, size: Size) -> Self

Provided Methods§

Source

fn xsmall(self) -> Self

Source

fn small(self) -> Self

Source

fn medium(self) -> Self

Source

fn large(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§