Struct pathfinder::Network [−][src]
Fields
elements: Vec<T>
Methods
impl<T: Draw + Hash> Network<T>
[src]
impl<T: Draw + Hash> Network<T>
impl<'a> Network<Node<'a>>
[src]
impl<'a> Network<Node<'a>>
pub fn path(
&'a self,
a: &str,
b: &str,
algorithm: &Fn(&'a Network<Node<'a>>, &str, &str) -> Vec<(usize, &'a Node<'a>)>
) -> Vec<(usize, &'a Node<'a>)>
[src]
pub fn path(
&'a self,
a: &str,
b: &str,
algorithm: &Fn(&'a Network<Node<'a>>, &str, &str) -> Vec<(usize, &'a Node<'a>)>
) -> Vec<(usize, &'a Node<'a>)>
pub fn contains<H: Hash>(&self, element: &H) -> bool
[src]
pub fn contains<H: Hash>(&self, element: &H) -> bool
Returns if the given hash exists in the network.
pub fn contains_index<H: Hash>(&self, element: &H) -> Option<usize>
[src]
pub fn contains_index<H: Hash>(&self, element: &H) -> Option<usize>
Returns the index of the element.
pub fn get_element(&self, id: &str) -> Option<&Node<'a>>
[src]
pub fn get_element(&self, id: &str) -> Option<&Node<'a>>
Retrieves an element given a &str.
pub fn path_shortest_leg(
network: &'a Network<Node<'a>>,
a: &str,
b: &str
) -> Vec<(usize, &'a Node<'a>)>
[src]
pub fn path_shortest_leg(
network: &'a Network<Node<'a>>,
a: &str,
b: &str
) -> Vec<(usize, &'a Node<'a>)>
Trait Implementations
impl<T: Clone + Draw + Hash> Clone for Network<T>
[src]
impl<T: Clone + Draw + Hash> Clone for Network<T>
fn clone(&self) -> Network<T>
[src]
fn clone(&self) -> Network<T>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl<T: Debug + Draw + Hash> Debug for Network<T>
[src]
impl<T: Debug + Draw + Hash> Debug for Network<T>