pub enum IgraphError {
InvalidArgument(String),
VertexOutOfRange {
id: u32,
n: u32,
},
EdgeOutOfRange {
id: u32,
m: u32,
},
Io(Error),
Parse {
line: usize,
message: String,
},
Unsupported(&'static str),
DidNotConverge {
iters: usize,
residual: f64,
},
Internal(&'static str),
}Expand description
All errors returned from rust-igraph.
Variants are added as algorithms land; the initial set covers the cases the walking-skeleton (Phase 0) needs.
Variants§
InvalidArgument(String)
Argument was outside its accepted range or otherwise invalid.
VertexOutOfRange
A vertex id referred to a vertex that does not exist.
EdgeOutOfRange
An edge id referred to an edge that does not exist.
Io(Error)
An I/O failure while reading or writing graph data.
Parse
Parsing a graph file failed.
Unsupported(&'static str)
Operation is not supported (e.g. unweighted-only path requested on weighted graph).
DidNotConverge
Numeric algorithm failed to converge within iteration budget.
Internal(&'static str)
Catch-all for unexpected internal failures (bugs).
Trait Implementations§
Source§impl Debug for IgraphError
impl Debug for IgraphError
Source§impl Display for IgraphError
impl Display for IgraphError
Source§impl Error for IgraphError
impl Error for IgraphError
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()
Auto Trait Implementations§
impl Freeze for IgraphError
impl !RefUnwindSafe for IgraphError
impl Send for IgraphError
impl Sync for IgraphError
impl Unpin for IgraphError
impl UnsafeUnpin for IgraphError
impl !UnwindSafe for IgraphError
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