pub enum GraphQueryError {
NotBinaryOperation,
NotUnaryOperation,
NotUnorderedOperation,
NotOrderedOperation,
NoSuchNode,
IncorrectBinaryOperandEdges,
IncorrectUnaryOperandEdge,
IncorrectUnorderedOperandEdge,
IncorrectOrderedOperandEdge,
}Expand description
An error that can occur when querying various aspects about an operation graph.
Variants§
NotBinaryOperation
The given operation is not a binary operation.
NotUnaryOperation
The given graph node wasn’t a unary operation.
NotUnorderedOperation
The given graph node wasn’t an unordered operation.
NotOrderedOperation
The given graph node wasn’t an ordered operation.
NoSuchNode
No node exists at the given index.
IncorrectBinaryOperandEdges
The given node doesn’t have 1 left and 1 right edge.
IncorrectUnaryOperandEdge
The given node doesn’t have exactly 1 unary edge.
IncorrectUnorderedOperandEdge
The given node has a non-unordered edge.
IncorrectOrderedOperandEdge
The given node has a non-ordered edge.
Trait Implementations§
Source§impl Clone for GraphQueryError
impl Clone for GraphQueryError
Source§fn clone(&self) -> GraphQueryError
fn clone(&self) -> GraphQueryError
Returns a duplicate of the value. Read more
1.0.0 · 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 GraphQueryError
impl Debug for GraphQueryError
Source§impl Display for GraphQueryError
impl Display for GraphQueryError
Source§impl Error for GraphQueryError
impl Error for GraphQueryError
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 GraphQueryError
impl PartialEq for GraphQueryError
impl Copy for GraphQueryError
impl Eq for GraphQueryError
impl StructuralPartialEq for GraphQueryError
Auto Trait Implementations§
impl Freeze for GraphQueryError
impl RefUnwindSafe for GraphQueryError
impl Send for GraphQueryError
impl Sync for GraphQueryError
impl Unpin for GraphQueryError
impl UnwindSafe for GraphQueryError
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.