pub enum BcsrSnapshotError {
MissingSection {
section: BcsrSection,
kind: 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.
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
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 BcsrSnapshotError
impl Debug for BcsrSnapshotError
Source§impl Display for BcsrSnapshotError
impl Display 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)>
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 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
Tests for
self and other values to be equal, and is used by ==.impl Eq for BcsrSnapshotError
impl StructuralPartialEq for BcsrSnapshotError
Auto Trait Implementations§
impl Freeze for BcsrSnapshotError
impl RefUnwindSafe for BcsrSnapshotError
impl Send for BcsrSnapshotError
impl Sync for BcsrSnapshotError
impl Unpin for BcsrSnapshotError
impl UnsafeUnpin for BcsrSnapshotError
impl UnwindSafe for BcsrSnapshotError
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