Skip to main content

InspectPropertyPattern

Trait InspectPropertyPattern 

Source
pub trait InspectPropertyPattern {
    // Required method
    fn matches(&self, args: &dyn PropertyArgs, captured: bool) -> bool;
}
Expand description

Query pattern for the WidgetInfoInspectorExt inspect methods.

Required Methods§

Source

fn matches(&self, args: &dyn PropertyArgs, captured: bool) -> bool

Returns true if the pattern includes the property.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementations on Foreign Types§

Source§

impl InspectPropertyPattern for &str

Matches if the PropertyInfo::name exactly.

Source§

fn matches(&self, args: &dyn PropertyArgs, _: bool) -> bool

Implementors§