Skip to main content

WidgetIdExt

Trait WidgetIdExt 

Source
pub trait WidgetIdExt: Into<Widget> + Sized {
    // Provided method
    fn id<I>(self, id: I) -> Widget
       where I: Into<WidgetId> { ... }
}
Expand description

Overrides Fission’s automatic structural identity for a widget.

Explicit IDs are normally only needed for logical items in dynamic collections or for code that must address a particular widget. An explicit ID also scopes all automatically identified descendants, so a stateful subtree follows its logical item when reordered.

Provided Methods§

Source

fn id<I>(self, id: I) -> Widget
where I: Into<WidgetId>,

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§

Source§

impl<T> WidgetIdExt for T
where T: Into<Widget>,