pub enum GraphError {
Show 14 variants
EmptyEdgeId,
DuplicateNode(NodeId),
DuplicateEdge(EdgeId),
MissingEndpoint {
edge_id: EdgeId,
endpoint: &'static str,
node_id: NodeId,
},
InvalidWeight {
edge_id: EdgeId,
weight: f64,
},
InvalidExternalId(String),
UnknownNode(NodeId),
UnknownEdge(EdgeId),
RelabelCollision {
target: NodeId,
first: NodeId,
second: NodeId,
},
ParallelEdge {
kind: GraphKind,
pair_source: NodeId,
pair_target: NodeId,
},
KindMismatch,
ConflictingEdge {
edge_id: EdgeId,
},
EdgeIdentityExhausted {
stored_id: String,
},
InvalidOption(String),
}Expand description
Graph construction or lookup failure.
Variants§
EmptyEdgeId
An edge identifier is empty.
DuplicateNode(NodeId)
The input contains the same node identity more than once.
DuplicateEdge(EdgeId)
The input contains the same edge identity more than once.
MissingEndpoint
An edge endpoint is absent from the selected node set.
Fields
InvalidWeight
The graph contains an invalid weight.
InvalidExternalId(String)
An external identity is malformed or exceeds its resource bounds.
UnknownNode(NodeId)
A requested node does not exist.
UnknownEdge(EdgeId)
A requested edge does not exist.
RelabelCollision
A relabel operation would merge distinct nodes.
Fields
ParallelEdge
A simple graph contains parallel endpoint pairs.
Fields
KindMismatch
Compose requires exactly equal graph kinds.
ConflictingEdge
Two graphs disagree about one stable edge identity.
EdgeIdentityExhausted
No further structural reverse generation can be represented.
InvalidOption(String)
An algorithm option violates its typed runtime contract.
Trait Implementations§
Source§impl Clone for GraphError
impl Clone for GraphError
Source§fn clone(&self) -> GraphError
fn clone(&self) -> GraphError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GraphError
impl Debug for GraphError
Source§impl Display for GraphError
impl Display for GraphError
Source§impl Error for GraphError
impl Error for GraphError
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()
Source§impl From<GraphError> for GraphLoadError
impl From<GraphError> for GraphLoadError
Source§fn from(source: GraphError) -> Self
fn from(source: GraphError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for GraphError
impl PartialEq for GraphError
impl StructuralPartialEq for GraphError
Auto Trait Implementations§
impl Freeze for GraphError
impl RefUnwindSafe for GraphError
impl Send for GraphError
impl Sync for GraphError
impl Unpin for GraphError
impl UnsafeUnpin for GraphError
impl UnwindSafe for GraphError
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