pub enum GraphOperationError {
VertexAlreadyExists,
VertexDoesNotExist,
EdgeDoesNotExist,
}
Expand description
Describes possible errors that might happen when user interacts with graph
Variants§
VertexAlreadyExists
when user trying to create vertex with the same data
VertexDoesNotExist
when user trying to get/remove vertex by id and it doesn’t exist
EdgeDoesNotExist
when user trying to find edge by two vertices and it’s failed
Trait Implementations§
source§impl Debug for GraphOperationError
impl Debug for GraphOperationError
source§impl Display for GraphOperationError
impl Display for GraphOperationError
source§impl Error for GraphOperationError
impl Error for GraphOperationError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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()
source§impl PartialEq<GraphOperationError> for GraphOperationError
impl PartialEq<GraphOperationError> for GraphOperationError
source§fn eq(&self, other: &GraphOperationError) -> bool
fn eq(&self, other: &GraphOperationError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.