pub enum GraphOpError {
MissingNode(NodeId),
DuplicateNode(NodeId),
Dim {
id: NodeId,
got: usize,
want: usize,
},
NonFinite(NodeId),
SelfMerge(NodeId),
}Expand description
Why an atomic graph op was refused before any mutation happened (๐6).
Variantsยง
MissingNode(NodeId)
An op referenced a node that is not in V.
DuplicateNode(NodeId)
AddNode collided with a different existing node.
Dim
Embedding dimension violates Inv3.
Fields
NonFinite(NodeId)
Embedding contains NaN/ยฑโ โ not a point of ๐ต.
SelfMerge(NodeId)
MergeNodes needs two distinct nodes.
Trait Implementationsยง
Sourceยงimpl Clone for GraphOpError
impl Clone for GraphOpError
Sourceยงimpl Debug for GraphOpError
impl Debug for GraphOpError
Sourceยงimpl Display for GraphOpError
impl Display for GraphOpError
impl Eq for GraphOpError
Sourceยงimpl Error for GraphOpError
impl Error for GraphOpError
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 PartialEq for GraphOpError
impl PartialEq for GraphOpError
impl StructuralPartialEq for GraphOpError
Auto Trait Implementationsยง
impl Freeze for GraphOpError
impl RefUnwindSafe for GraphOpError
impl Send for GraphOpError
impl Sync for GraphOpError
impl Unpin for GraphOpError
impl UnsafeUnpin for GraphOpError
impl UnwindSafe for GraphOpError
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Sourceยงimpl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Sourceยงimpl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Sourceยงfn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.