Skip to main content

ProbedAny

Trait ProbedAny 

Source
pub trait ProbedAny: IntoElement + Sized {
    // Provided method
    fn probe_any(self, name: impl Into<SharedString>) -> Probe<Self> { ... }
}
Expand description

The same, for an element that has no style of its own.

A handful of components return something already composed — a Field, a deferred(..) overlay, another component — rather than a styled element. Those have no StyleRefinement to hand over; the style that matters belongs to whatever they wrapped, and that reports itself separately. They still belong in the tree, so they probe through here, and their Styles sidebar reads as empty — which is the truth.

Provided Methods§

Source

fn probe_any(self, name: impl Into<SharedString>) -> Probe<Self>

Wrap this element in a probe named name, without a style snapshot.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§