Skip to main content

Modifier

Trait Modifier 

Source
pub trait Modifier:
    Copy
    + Eq
    + Default
    + Debug
    + 'static {
    const ALL: &'static [Self];
    const BEM: Bem;

    // Required method
    fn suffix(self) -> Option<&'static str>;
}
Expand description

An enum whose variants are exactly the CSS modifiers for one block.

Required Associated Constants§

Source

const ALL: &'static [Self]

Every variant, including the bare default.

Source

const BEM: Bem

The upstream block to which these modifiers belong.

Required Methods§

Source

fn suffix(self) -> Option<&'static str>

The portion after --, absent for the default.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl Modifier for AlertTone

Source§

const ALL: &'static [Self]

Source§

const BEM: Bem = BEM

Source§

impl Modifier for AvatarSize

Source§

const ALL: &'static [Self]

Source§

const BEM: Bem = BEM

Source§

impl Modifier for BadgeTone

Source§

const ALL: &'static [Self]

Source§

const BEM: Bem = BEM

Source§

impl Modifier for ButtonSize

Source§

const ALL: &'static [Self]

Source§

const BEM: Bem = BEM

Source§

impl Modifier for ButtonVariant

Source§

const ALL: &'static [Self]

Source§

const BEM: Bem = BEM

Source§

impl Modifier for CardVariant

Source§

const ALL: &'static [Self]

Source§

const BEM: Bem = BEM

Source§

impl Modifier for CarouselLayout

Source§

const ALL: &'static [Self]

Source§

const BEM: Bem = BEM

Source§

impl Modifier for ControlLayout

Source§

const ALL: &'static [Self]

Source§

const BEM: Bem = CONTROLS

Source§

impl Modifier for DialogPlacement

Source§

const ALL: &'static [Self]

Source§

const BEM: Bem = BEM

Source§

impl Modifier for DialogSize

Source§

const ALL: &'static [Self]

Source§

const BEM: Bem = BEM

Source§

impl Modifier for DividerInset

Source§

const ALL: &'static [Self]

Source§

const BEM: Bem = BEM

Source§

impl Modifier for DlLayout

Source§

const ALL: &'static [Self]

Source§

const BEM: Bem = BEM

Source§

impl Modifier for FabSize

Source§

const ALL: &'static [Self]

Source§

const BEM: Bem = BEM

Source§

impl Modifier for FabTone

Source§

const ALL: &'static [Self]

Source§

const BEM: Bem = BEM

Source§

impl Modifier for IconSize

Source§

const ALL: &'static [Self]

Source§

const BEM: Bem = BEM

Source§

impl Modifier for InputSize

Source§

const ALL: &'static [Self]

Source§

const BEM: Bem = INPUT

Source§

impl Modifier for InputVariant

Source§

const ALL: &'static [Self]

Source§

const BEM: Bem = INPUT

Source§

impl Modifier for RingSize

Source§

const ALL: &'static [Self]

Source§

const BEM: Bem = RING

Source§

impl Modifier for SkeletonShape

Source§

const ALL: &'static [Self]

Source§

const BEM: Bem = SKELETON

Source§

impl Modifier for SpinnerKind

Source§

const ALL: &'static [Self]

Source§

const BEM: Bem = BEM

Source§

impl Modifier for SpinnerSize

Source§

const ALL: &'static [Self]

Source§

const BEM: Bem = BEM

Source§

impl Modifier for SpinnerTone

Source§

const ALL: &'static [Self]

Source§

const BEM: Bem = BEM

Source§

impl Modifier for SwitchSize

Source§

const ALL: &'static [Self]

Source§

const BEM: Bem = SWITCH

Source§

impl Modifier for ToastTone

Source§

const ALL: &'static [Self]

Source§

const BEM: Bem = TOAST

Source§

impl Modifier for ToolbarSurface

Source§

const ALL: &'static [Self]

Source§

const BEM: Bem = BEM