pub enum TwoPTwoPGraphError<Id>where
Id: Debug,{
VertexAlreadyExists(Id),
VertexDoesNotExists(Id),
EdgeAlreadyExists(Id),
EdgeDoesNotExists(Id),
VertexHasEdge(Id, Id),
AddVertexNotDelivered(Id),
AddEdgeNotDelivered(Id),
}Expand description
Errors that can occur when performing operations on a TwoPTwoPGraph.
Variants§
VertexAlreadyExists(Id)
A vertex with the given ID has already been added.
VertexDoesNotExists(Id)
The referenced vertex does not exist in V_A \ V_R.
EdgeAlreadyExists(Id)
An edge with the given ID has already been added.
EdgeDoesNotExists(Id)
The referenced edge does not exist in E_A \ E_R.
VertexHasEdge(Id, Id)
Cannot remove the vertex because it still has an active (non-removed) edge.
AddVertexNotDelivered(Id)
Downstream precondition failure: the corresponding addVertex has not been delivered yet.
AddEdgeNotDelivered(Id)
Downstream precondition failure: the corresponding addEdge has not been delivered yet.
Trait Implementations§
Source§impl<Id> Debug for TwoPTwoPGraphError<Id>
impl<Id> Debug for TwoPTwoPGraphError<Id>
Source§impl<Id> Display for TwoPTwoPGraphError<Id>
impl<Id> Display for TwoPTwoPGraphError<Id>
Source§impl<Id> Error for TwoPTwoPGraphError<Id>
impl<Id> Error for TwoPTwoPGraphError<Id>
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Auto Trait Implementations§
impl<Id> Freeze for TwoPTwoPGraphError<Id>where
Id: Freeze,
impl<Id> RefUnwindSafe for TwoPTwoPGraphError<Id>where
Id: RefUnwindSafe,
impl<Id> Send for TwoPTwoPGraphError<Id>where
Id: Send,
impl<Id> Sync for TwoPTwoPGraphError<Id>where
Id: Sync,
impl<Id> Unpin for TwoPTwoPGraphError<Id>where
Id: Unpin,
impl<Id> UnsafeUnpin for TwoPTwoPGraphError<Id>where
Id: UnsafeUnpin,
impl<Id> UnwindSafe for TwoPTwoPGraphError<Id>where
Id: 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