pub enum GraphValidationError {
EdgeOffsetsLen {
expected: usize,
got: usize,
},
EdgeTargetsLen {
expected: usize,
got: usize,
},
EdgeKindMaskLen {
expected: usize,
got: usize,
},
NodeTagsLen {
expected: usize,
got: usize,
},
NodesLen {
expected: usize,
got: usize,
},
EdgeOutOfRange {
index: usize,
target: u32,
node_count: u32,
},
NonMonotonicOffsets {
index: usize,
},
EdgeCountMismatch {
expected: usize,
got: usize,
},
}Expand description
Error kinds surfaced by validate_program_graph.
Variants§
EdgeOffsetsLen
edge_offsets length != node_count + 1.
EdgeTargetsLen
edge_targets length != edge_count.
EdgeKindMaskLen
edge_kind_mask length != edge_count.
NodeTagsLen
node_tags length != node_count.
NodesLen
nodes length != node_count.
EdgeOutOfRange
edge_targets[i] >= node_count.
Fields
NonMonotonicOffsets
Offsets not monotonically non-decreasing.
EdgeCountMismatch
Final CSR offset does not match the declared edge count.
Trait Implementations§
Source§impl Clone for GraphValidationError
impl Clone for GraphValidationError
Source§fn clone(&self) -> GraphValidationError
fn clone(&self) -> GraphValidationError
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 moreimpl Copy for GraphValidationError
Source§impl Debug for GraphValidationError
impl Debug for GraphValidationError
impl Eq for GraphValidationError
Source§impl PartialEq for GraphValidationError
impl PartialEq for GraphValidationError
impl StructuralPartialEq for GraphValidationError
Auto Trait Implementations§
impl Freeze for GraphValidationError
impl RefUnwindSafe for GraphValidationError
impl Send for GraphValidationError
impl Sync for GraphValidationError
impl Unpin for GraphValidationError
impl UnsafeUnpin for GraphValidationError
impl UnwindSafe for GraphValidationError
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.