pub trait ContainsElement: TopologyBase {
// Required method
fn contains_element(&self, element: Self::ElementId) -> bool;
}Expand description
Element-ID containment capability for a topology view.
This capability answers whether an element ID is valid and visible in this
view at the time of the call. It is intentionally separate from
ElementIndex: an index bound is an allocation bound, while containment is
an ID-validity predicate. Mutable, filtered, tombstoned, or overlay views may
have indexes below the bound that are not visible elements.
§Performance
Expected O(1) unless the implementation documents otherwise.
Required Methods§
Sourcefn contains_element(&self, element: Self::ElementId) -> bool
fn contains_element(&self, element: Self::ElementId) -> bool
Returns whether element is valid and visible in this view.
§Performance
Expected O(1) unless the implementation documents otherwise.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".