Struct daggy::WouldCycle
source · [−]pub struct WouldCycle<E>(pub E);
Expand description
An error returned by the Dag::add_edge
method in the case that adding an edge would have
caused the graph to cycle.
Tuple Fields
0: E
Trait Implementations
sourceimpl<E: Clone> Clone for WouldCycle<E>
impl<E: Clone> Clone for WouldCycle<E>
sourcefn clone(&self) -> WouldCycle<E>
fn clone(&self) -> WouldCycle<E>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl<E> Debug for WouldCycle<E>
impl<E> Debug for WouldCycle<E>
sourceimpl<E> Display for WouldCycle<E>
impl<E> Display for WouldCycle<E>
sourceimpl<E> Error for WouldCycle<E>
impl<E> Error for WouldCycle<E>
sourcefn description(&self) -> &str
fn description(&self) -> &str
👎 Deprecated since 1.42.0:
use the Display impl or to_string()
1.30.0 · sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
impl<E: Copy> Copy for WouldCycle<E>
Auto Trait Implementations
impl<E> RefUnwindSafe for WouldCycle<E> where
E: RefUnwindSafe,
impl<E> Send for WouldCycle<E> where
E: Send,
impl<E> Sync for WouldCycle<E> where
E: Sync,
impl<E> Unpin for WouldCycle<E> where
E: Unpin,
impl<E> UnwindSafe for WouldCycle<E> where
E: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more