Struct daggy::WouldCycle [] [src]

pub struct WouldCycle<E>(pub E);

An error returned by the Dag::add_edge method in the case that adding an edge would have caused the graph to cycle.

Trait Implementations

impl<E: Debug> Debug for WouldCycle<E>
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl<E: Clone> Clone for WouldCycle<E>
[src]

fn clone(&self) -> WouldCycle<E>

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)
1.0.0

Performs copy-assignment from source. Read more

impl<E: Copy> Copy for WouldCycle<E>
[src]

impl<E> Display for WouldCycle<E> where E: Debug
[src]

fn fmt(&self, f: &mut Formatter) -> Result<()Error>

Formats the value using the given formatter.

impl<E> Error for WouldCycle<E> where E: Debug + Any
[src]

fn description(&self) -> &str

A short description of the error. Read more

fn cause(&self) -> Option<&Error>
1.0.0

The lower-level cause of this error, if any. Read more