pub trait ContainsRelation: TopologyBase {
// Required method
fn contains_relation(&self, relation: Self::RelationId) -> bool;
}Expand description
Relation-ID containment capability for a topology view.
This capability answers whether a relation ID is valid and visible in this view at the time of the call. It does not answer graph-specific questions such as whether an edge between two nodes exists, nor hypergraph-specific questions such as whether a vertex participates in a hyperedge.
§Performance
Expected O(1) unless the implementation documents otherwise.
Required Methods§
Sourcefn contains_relation(&self, relation: Self::RelationId) -> bool
fn contains_relation(&self, relation: Self::RelationId) -> bool
Returns whether relation 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".