pub enum ParseGraphError {
VertexDefinition(usize),
EdgeDefinition(usize),
VertexAlreadyDefined(usize, usize),
VerticesNotDefined(usize, usize, usize),
ParseInt(usize),
ParseLabel(usize),
GraphError(GraphOperationError, usize),
}
Expand description
Describes possible errors that might happen during parsing the Trivial Graph Format
Variants§
VertexDefinition(usize)
(line: usize)
EdgeDefinition(usize)
(line: usize)
VertexAlreadyDefined(usize, usize)
(vertex_index: usize, line: usize)
VerticesNotDefined(usize, usize, usize)
(from_index: usize, to_index: usize, line: usize)
ParseInt(usize)
(line: usize)
ParseLabel(usize)
(line: usize)
GraphError(GraphOperationError, usize)
internal error with graphs API
Trait Implementations§
Source§impl Debug for ParseGraphError
impl Debug for ParseGraphError
Source§impl Display for ParseGraphError
impl Display for ParseGraphError
Source§impl Error for ParseGraphError
impl Error for ParseGraphError
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 PartialEq for ParseGraphError
impl PartialEq for ParseGraphError
impl Eq for ParseGraphError
impl StructuralPartialEq for ParseGraphError
Auto Trait Implementations§
impl Freeze for ParseGraphError
impl RefUnwindSafe for ParseGraphError
impl Send for ParseGraphError
impl Sync for ParseGraphError
impl Unpin for ParseGraphError
impl UnwindSafe for ParseGraphError
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