Enum simple_graph::ParseGraphError
source · 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
sourceimpl Debug for ParseGraphError
impl Debug for ParseGraphError
sourceimpl Display for ParseGraphError
impl Display for ParseGraphError
sourceimpl Error for ParseGraphError
impl Error for ParseGraphError
1.30.0 · sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
sourceimpl PartialEq<ParseGraphError> for ParseGraphError
impl PartialEq<ParseGraphError> for ParseGraphError
sourcefn eq(&self, other: &ParseGraphError) -> bool
fn eq(&self, other: &ParseGraphError) -> bool
impl Eq for ParseGraphError
impl StructuralEq for ParseGraphError
impl StructuralPartialEq for ParseGraphError
Auto Trait Implementations
impl RefUnwindSafe for ParseGraphError
impl Send for ParseGraphError
impl Sync for ParseGraphError
impl Unpin for ParseGraphError
impl UnwindSafe for ParseGraphError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more