Trait MapExt

Source
pub trait MapExt {
    // Required method
    fn with_id(self, id: &'static str) -> Self;
}
Expand description

Add the with_id function to assign an ID to the widget for later retrieval

Required Methods§

Source

fn with_id(self, id: &'static str) -> Self

Adds an ID to the widget. The widget can be at any point retrieved using its ID. Panics if RWLock used internally is poisoned

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§

Source§

impl<W> MapExt for W
where W: WidgetExt + Clone + Send + Sync + 'static,