pub enum CsrSnapshotError<NodeIndex, EdgeIndex> {
MissingOffsets,
MissingTargets,
OffsetsView(SectionViewError),
TargetsView(SectionViewError),
OffsetsEmpty,
NodeCountOverflow {
offsets_len: usize,
},
Csr(CsrError<NodeIndex, EdgeIndex>),
}Expand description
Error returned when a snapshot cannot be opened as a CSR graph.
§Performance
perf: unspecified; errors are returned only from snapshot-bound paths.
Variants§
MissingOffsets
The snapshot has no CSR offsets section for the requested edge width.
MissingTargets
The snapshot has no CSR targets section for the requested node width.
OffsetsView(SectionViewError)
The CSR offsets section payload could not be borrowed as the selected little-endian index word slice.
TargetsView(SectionViewError)
The CSR targets section payload could not be borrowed as the selected little-endian index word slice.
OffsetsEmpty
The CSR offsets section is empty; CSR requires at least one entry for the n-plus-one layout.
NodeCountOverflow
The derived node count would not fit in the selected index type.
Csr(CsrError<NodeIndex, EdgeIndex>)
CSR-shape validation failed on the borrowed sections.
Trait Implementations§
Source§impl<NodeIndex: Clone, EdgeIndex: Clone> Clone for CsrSnapshotError<NodeIndex, EdgeIndex>
impl<NodeIndex: Clone, EdgeIndex: Clone> Clone for CsrSnapshotError<NodeIndex, EdgeIndex>
Source§fn clone(&self) -> CsrSnapshotError<NodeIndex, EdgeIndex>
fn clone(&self) -> CsrSnapshotError<NodeIndex, EdgeIndex>
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<NodeIndex, EdgeIndex> Display for CsrSnapshotError<NodeIndex, EdgeIndex>
impl<NodeIndex, EdgeIndex> Display for CsrSnapshotError<NodeIndex, EdgeIndex>
Source§impl<NodeIndex, EdgeIndex> Error for CsrSnapshotError<NodeIndex, EdgeIndex>
impl<NodeIndex, EdgeIndex> Error for CsrSnapshotError<NodeIndex, EdgeIndex>
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<NodeIndex, EdgeIndex> From<CsrError<NodeIndex, EdgeIndex>> for CsrSnapshotError<NodeIndex, EdgeIndex>
impl<NodeIndex, EdgeIndex> From<CsrError<NodeIndex, EdgeIndex>> for CsrSnapshotError<NodeIndex, EdgeIndex>
Source§impl<NodeIndex: PartialEq, EdgeIndex: PartialEq> PartialEq for CsrSnapshotError<NodeIndex, EdgeIndex>
impl<NodeIndex: PartialEq, EdgeIndex: PartialEq> PartialEq for CsrSnapshotError<NodeIndex, EdgeIndex>
Source§fn eq(&self, other: &CsrSnapshotError<NodeIndex, EdgeIndex>) -> bool
fn eq(&self, other: &CsrSnapshotError<NodeIndex, EdgeIndex>) -> bool
Tests for
self and other values to be equal, and is used by ==.impl<NodeIndex: Eq, EdgeIndex: Eq> Eq for CsrSnapshotError<NodeIndex, EdgeIndex>
impl<NodeIndex, EdgeIndex> StructuralPartialEq for CsrSnapshotError<NodeIndex, EdgeIndex>
Auto Trait Implementations§
impl<NodeIndex, EdgeIndex> Freeze for CsrSnapshotError<NodeIndex, EdgeIndex>
impl<NodeIndex, EdgeIndex> RefUnwindSafe for CsrSnapshotError<NodeIndex, EdgeIndex>where
NodeIndex: RefUnwindSafe,
EdgeIndex: RefUnwindSafe,
impl<NodeIndex, EdgeIndex> Send for CsrSnapshotError<NodeIndex, EdgeIndex>
impl<NodeIndex, EdgeIndex> Sync for CsrSnapshotError<NodeIndex, EdgeIndex>
impl<NodeIndex, EdgeIndex> Unpin for CsrSnapshotError<NodeIndex, EdgeIndex>
impl<NodeIndex, EdgeIndex> UnsafeUnpin for CsrSnapshotError<NodeIndex, EdgeIndex>where
NodeIndex: UnsafeUnpin,
EdgeIndex: UnsafeUnpin,
impl<NodeIndex, EdgeIndex> UnwindSafe for CsrSnapshotError<NodeIndex, EdgeIndex>where
NodeIndex: UnwindSafe,
EdgeIndex: UnwindSafe,
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