[][src]Trait abstractgraph::weight::WeightedOutboundEdge

pub trait WeightedOutboundEdge<N, W: EdgeWeight>: OutboundEdge<N> {
    fn weight(&self) -> W;

    fn into_destination_and_weight(self) -> (N, W)
    where
        Self: Sized
, { ... } }

The trait for types representing a single weighted graph edge from a known graph node

This could be a reference to some internal part of your data structure, an index or whatever else is suitable for your graph representation.

Required methods

fn weight(&self) -> W

Returns the weight / cost of this edge

Loading content...

Provided methods

fn into_destination_and_weight(self) -> (N, W) where
    Self: Sized

Loading content...

Implementors

impl<N, W> WeightedOutboundEdge<N, W> for WeightedEdge<N, W> where
    N: Clone,
    W: EdgeWeight
[src]

impl<N, W, E> WeightedOutboundEdge<N, W> for UnitWeightEdge<E> where
    W: EdgeWeight + One,
    E: OutboundEdge<N>, 
[src]

fn into_destination_and_weight(self) -> (N, W) where
    Self: Sized
[src]

Loading content...