Skip to main content

OverrideSlot

Type Alias OverrideSlot 

Source
pub type OverrideSlot<T> = Option<WidgetStateProperty<Option<T>>>;
Expand description

ADR 0220 override slot shape.

  • outer Option: whether a slot is overridden at all
  • inner Option<T>: per-state “no override” to fall back to defaults for that state

Aliased Type§

pub enum OverrideSlot<T> {
    None,
    Some(WidgetStateProperty<Option<T>>),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(WidgetStateProperty<Option<T>>)

Some value of type T.