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§
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)>
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<ParseGraphError> for ParseGraphError
impl PartialEq<ParseGraphError> for ParseGraphError
source§fn eq(&self, other: &ParseGraphError) -> bool
fn eq(&self, other: &ParseGraphError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.