pub trait WidgetPathProvider {
type WidgetIter<'s>: Iterator<Item = WidgetId>
where Self: 's;
// Required methods
fn window_id(&self) -> WindowId;
fn widget_and_ancestors(&self) -> Self::WidgetIter<'_>;
}
Expand description
Provides an iterator of widget IDs and a window ID.
Required Associated Types§
Sourcetype WidgetIter<'s>: Iterator<Item = WidgetId>
where
Self: 's
type WidgetIter<'s>: Iterator<Item = WidgetId> where Self: 's
Output of widget_and_ancestors
.
Required Methods§
Sourcefn widget_and_ancestors(&self) -> Self::WidgetIter<'_>
fn widget_and_ancestors(&self) -> Self::WidgetIter<'_>
Iterate over the widget, parent, grandparent, .., root.
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.