Skip to main content

PredicateFiniteGraph

Trait PredicateFiniteGraph 

Source
pub trait PredicateFiniteGraph: Graph {
    type GraphPredicates<'a>: Iterator<Item = &'a Self::Resource>
       where Self: 'a;

    // Required method
    fn graph_predicates(&self) -> Self::GraphPredicates<'_>;

    // Provided method
    fn graph_predicate_count(&self) -> usize { ... }
}
Expand description

Graph that can enumerate the distinct resources it uses as a predicate.

Required Associated Types§

Source

type GraphPredicates<'a>: Iterator<Item = &'a Self::Resource> where Self: 'a

Predicates iterator.

Required Methods§

Source

fn graph_predicates(&self) -> Self::GraphPredicates<'_>

Returns an iterator over the distinct predicates of the graph.

Provided Methods§

Source

fn graph_predicate_count(&self) -> usize

Returns the number of distinct predicates in the graph.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§