pub enum SemanticGraphError {
InvalidSourceRange,
SourceRangeCountMismatch,
GraphTooLarge,
NodeOutOfRange {
index: u32,
},
SelfEdge {
index: u32,
},
DuplicateEdge,
ResourceKindMissing {
index: usize,
},
UnexpectedResourceKind {
index: usize,
},
InvalidResourceLifetime,
}Expand description
A graph rejected an operation or relationship outside the restricted model.
Variants§
InvalidSourceRange
A caller supplied a source range whose end precedes its start.
SourceRangeCountMismatch
Sidecar source ranges no longer align with the normalized graph.
GraphTooLarge
The graph cannot represent more nodes than its local references allow.
NodeOutOfRange
An edge referenced no operation in this graph.
SelfEdge
An operation cannot depend on itself.
DuplicateEdge
The same edge was supplied more than once.
ResourceKindMissing
An acquire or release omitted the category required to pair it safely.
UnexpectedResourceKind
A non-resource operation attempted to carry a resource category.
InvalidResourceLifetime
A resource edge must pair matching acquire and release operations.
Trait Implementations§
Source§impl Debug for SemanticGraphError
impl Debug for SemanticGraphError
Source§impl Display for SemanticGraphError
impl Display for SemanticGraphError
impl Eq for SemanticGraphError
Source§impl Error for SemanticGraphError
impl Error for SemanticGraphError
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 SemanticGraphError
impl PartialEq for SemanticGraphError
impl StructuralPartialEq for SemanticGraphError
Auto Trait Implementations§
impl Freeze for SemanticGraphError
impl RefUnwindSafe for SemanticGraphError
impl Send for SemanticGraphError
impl Sync for SemanticGraphError
impl Unpin for SemanticGraphError
impl UnsafeUnpin for SemanticGraphError
impl UnwindSafe for SemanticGraphError
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<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.