pub struct HasCycle<K: Debug + Display> { /* private fields */ }
Expand description
Error raised when enforce_dag finds that the graph is not a DAG
Implementations§
Trait Implementations§
impl<K: Eq + Debug + Display> Eq for HasCycle<K>
impl<K: Debug + Display> StructuralPartialEq for HasCycle<K>
Auto Trait Implementations§
impl<K> Freeze for HasCycle<K>where
K: Freeze,
impl<K> RefUnwindSafe for HasCycle<K>where
K: RefUnwindSafe,
impl<K> Send for HasCycle<K>where
K: Send,
impl<K> Sync for HasCycle<K>where
K: Sync,
impl<K> Unpin for HasCycle<K>where
K: Unpin,
impl<K> UnwindSafe for HasCycle<K>where
K: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more