pub trait Path<N>:
Clone
+ Eq
+ PartialEq
+ Deref<Target = [N]>
+ IntoIterator<Item = N>{
// Required method
fn invert(self) -> Option<Self>;
// Provided methods
fn hops(&self) -> &[N] { ... }
fn num_hops(&self) -> usize { ... }
fn contains_cycle(&self) -> bool { ... }
}
Expand description
Base implementation of an abstract path.
Required Methods§
Provided Methods§
Sourcefn contains_cycle(&self) -> bool
fn contains_cycle(&self) -> bool
Checks if the path contains some entry twice.
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.