Skip to main content

InspectWidgetPattern

Trait InspectWidgetPattern 

Source
pub trait InspectWidgetPattern {
    // Required method
    fn matches(&self, info: &InspectorInfo) -> bool;
}
Expand description

Query pattern for the WidgetInfoInspectorExt inspect methods.

Required Methods§

Source

fn matches(&self, info: &InspectorInfo) -> bool

Returns true if the pattern includes the widget.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementations on Foreign Types§

Source§

impl InspectWidgetPattern for &str

Matches if the WidgetType::path ends with the string.

Source§

fn matches(&self, info: &InspectorInfo) -> bool

Source§

impl InspectWidgetPattern for TypeId

Source§

fn matches(&self, info: &InspectorInfo) -> bool

Implementors§