pub enum PrepareWitnessGraphError {
InvalidOffsetCount {
offsets: usize,
expected: usize,
},
OffsetCountOverflow {
nodes: usize,
},
EdgeArrayLengthMismatch {
targets: usize,
kinds: usize,
},
EdgeCountOverflow {
edges: usize,
},
NonZeroInitialOffset {
first: u32,
},
NonMonotonicOffsets {
source: usize,
start: usize,
end: usize,
},
OffsetExceedsEdgeCount {
offset_index: usize,
offset: usize,
edges: usize,
},
ReverseEdgeCountOverflow {
node: usize,
},
TerminalOffsetMismatch {
terminal: usize,
edges: usize,
},
TargetOutOfBounds {
edge_index: usize,
target: u32,
node_count: u32,
},
}Expand description
Structured validation failures for witness-graph CSR preparation.
Variants§
InvalidOffsetCount
edge_offsets was not exactly node_count + 1 entries.
OffsetCountOverflow
node_count + 1 overflowed the host index type.
EdgeArrayLengthMismatch
edge_targets and edge_kind_mask did not both match final offset.
EdgeCountOverflow
A CSR edge count or edge offset could not be represented by the host index type while preparing the reverse witness graph.
NonZeroInitialOffset
CSR offsets did not start at zero.
NonMonotonicOffsets
CSR offsets decreased between adjacent rows.
Fields
OffsetExceedsEdgeCount
A row end exceeded the final declared edge count.
Fields
ReverseEdgeCountOverflow
Reverse CSR edge count overflowed while preparing predecessor rows.
TerminalOffsetMismatch
Final CSR offset did not match the supplied edge arrays.
TargetOutOfBounds
An edge target named a node outside the graph.
Trait Implementations§
Source§impl Clone for PrepareWitnessGraphError
impl Clone for PrepareWitnessGraphError
Source§fn clone(&self) -> PrepareWitnessGraphError
fn clone(&self) -> PrepareWitnessGraphError
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 PrepareWitnessGraphError
impl Debug for PrepareWitnessGraphError
impl Eq for PrepareWitnessGraphError
Source§impl PartialEq for PrepareWitnessGraphError
impl PartialEq for PrepareWitnessGraphError
impl StructuralPartialEq for PrepareWitnessGraphError
Auto Trait Implementations§
impl Freeze for PrepareWitnessGraphError
impl RefUnwindSafe for PrepareWitnessGraphError
impl Send for PrepareWitnessGraphError
impl Sync for PrepareWitnessGraphError
impl Unpin for PrepareWitnessGraphError
impl UnsafeUnpin for PrepareWitnessGraphError
impl UnwindSafe for PrepareWitnessGraphError
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.