pub enum BcsrSnapshotError {
MissingSection {
section: BcsrSection,
kind: u32,
},
VersionMismatch {
section: BcsrSection,
kind: u32,
expected: u32,
actual: u32,
},
SectionView {
section: BcsrSection,
error: SectionViewError,
},
OffsetsEmpty {
section: BcsrSection,
},
CountOverflow {
section: BcsrSection,
offsets_len: usize,
},
Bcsr(BcsrError),
}Expand description
Error returned when a snapshot cannot be opened as a bipartite-CSR hypergraph view.
§Performance
perf: unspecified; errors are returned only from snapshot-bound paths.
Variants§
MissingSection
The snapshot is missing one of the eight required sections.
VersionMismatch
A required section was present but its version did not match.
Fields
section: BcsrSectionWhich section had the wrong version.
SectionView
A required section payload could not be borrowed as [U32<LE>].
Fields
section: BcsrSectionWhich section failed the typed-slice cast.
error: SectionViewErrorThe underlying snapshot error.
OffsetsEmpty
One of the offset sections was empty; bipartite-CSR requires at least one entry for the n-plus-one layout.
Fields
section: BcsrSectionWhich offset section was empty.
CountOverflow
A derived count would not fit in u32.
Fields
section: BcsrSectionWhich section’s length triggered the overflow.
Bcsr(BcsrError)
Bipartite-CSR layout-shape error surfaced through the borrowed sections.
Trait Implementations§
Source§impl Clone for BcsrSnapshotError
impl Clone for BcsrSnapshotError
Source§fn clone(&self) -> BcsrSnapshotError
fn clone(&self) -> BcsrSnapshotError
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for BcsrSnapshotError
impl Debug for BcsrSnapshotError
Source§impl Display for BcsrSnapshotError
impl Display for BcsrSnapshotError
impl Eq for BcsrSnapshotError
Source§impl Error for BcsrSnapshotError
impl Error for BcsrSnapshotError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
Source§impl From<BcsrError> for BcsrSnapshotError
impl From<BcsrError> for BcsrSnapshotError
Source§impl PartialEq for BcsrSnapshotError
impl PartialEq for BcsrSnapshotError
Source§fn eq(&self, other: &BcsrSnapshotError) -> bool
fn eq(&self, other: &BcsrSnapshotError) -> bool
self and other values to be equal, and is used by ==.