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
sourceimpl Debug for GraphOperationError
impl Debug for GraphOperationError
sourceimpl Display for GraphOperationError
impl Display for GraphOperationError
sourceimpl Error for GraphOperationError
impl Error for GraphOperationError
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
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
sourceimpl PartialEq<GraphOperationError> for GraphOperationError
impl PartialEq<GraphOperationError> for GraphOperationError
sourcefn eq(&self, other: &GraphOperationError) -> bool
fn eq(&self, other: &GraphOperationError) -> bool
impl Eq for GraphOperationError
impl StructuralEq for GraphOperationError
impl StructuralPartialEq for GraphOperationError
Auto Trait Implementations
impl RefUnwindSafe for GraphOperationError
impl Send for GraphOperationError
impl Sync for GraphOperationError
impl Unpin for GraphOperationError
impl UnwindSafe for GraphOperationError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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