pub enum GraphBuilderError {
OccupiedInputPort(NodePort),
OccupiedOutputPort(NodePort),
CyclicGraph,
SymbolError(SymbolError),
ConnectError(ConnectError),
}Expand description
Error in building a graph with a GraphBuilder
Variants§
OccupiedInputPort(NodePort)
Tried to add an edge to a in-port that already has an incoming edge.
OccupiedOutputPort(NodePort)
Tried to add an edge from an out-port that already has an outgoing edge.
CyclicGraph
The edges (dependencies) in a Graph contained a cycle
SymbolError(SymbolError)
An error in a (supposed) qualified name
ConnectError(ConnectError)
Error from super::portgraph library that edge could not be added, e.g. if the source or target node-indices do not exist.
Trait Implementations§
Source§impl Debug for GraphBuilderError
impl Debug for GraphBuilderError
Source§impl Display for GraphBuilderError
impl Display for GraphBuilderError
Source§impl Error for GraphBuilderError
impl Error for GraphBuilderError
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<ConnectError> for GraphBuilderError
impl From<ConnectError> for GraphBuilderError
Source§fn from(source: ConnectError) -> Self
fn from(source: ConnectError) -> Self
Converts to this type from the input type.
Source§impl From<SymbolError> for GraphBuilderError
impl From<SymbolError> for GraphBuilderError
Source§fn from(source: SymbolError) -> Self
fn from(source: SymbolError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for GraphBuilderError
impl RefUnwindSafe for GraphBuilderError
impl Send for GraphBuilderError
impl Sync for GraphBuilderError
impl Unpin for GraphBuilderError
impl UnsafeUnpin for GraphBuilderError
impl UnwindSafe for GraphBuilderError
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more