Struct floyd_warshall::Path
[−]
[src]
pub struct Path<T> { /* fields omitted */ }
This represents a sequence of nodes. The length is also saved, and when exists = false
, this means "there is no path".
Methods
impl<T> Path<T>
[src]
fn get_slice<'a>(&'a self) -> &'a [T]
[src]
Returns the intermediate nodes on this path as a slice.
fn iter<'a>(&'a self) -> impl DoubleEndedIterator<Item = &'a T>
[src]
Returns an iterator of the intermediat enodes on this path.
fn len(&self) -> usize
[src]
Returns the length of this path.
fn exists(&self) -> bool
[src]
Has this path finite length?
Trait Implementations
impl<T: Clone> Clone for Path<T>
[src]
fn clone(&self) -> Path<T>
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more