pub trait ResourceTraversableGraph: Graph {
type GraphResources<'a>: Iterator<Item = &'a Self::Resource>
where Self: 'a;
// Required method
fn graph_resources(&self) -> Self::GraphResources<'_>;
// Provided method
fn graph_resource_count(&self) -> usize { ... }
}
Required Associated Types§
type GraphResources<'a>: Iterator<Item = &'a Self::Resource> where Self: 'a
Required Methods§
fn graph_resources(&self) -> Self::GraphResources<'_>
Provided Methods§
fn graph_resource_count(&self) -> usize
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.