pub enum GraphValidationError {
Show 22 variants
UnsupportedGraphVersion {
expected: u32,
found: u32,
},
PortMissingNode {
port: PortId,
node: NodeId,
},
PortMissingFromOwner {
port: PortId,
node: NodeId,
},
NodeParentMissingGroup {
node: NodeId,
group: GroupId,
},
NodeInvalidSize {
node: NodeId,
width: f32,
height: f32,
},
NodePortsMissingPort {
node: NodeId,
port: PortId,
},
NodePortsWrongOwner {
node: NodeId,
port: PortId,
owner: NodeId,
},
NodePortsDuplicate {
node: NodeId,
port: PortId,
},
EdgeMissingPort {
edge: EdgeId,
port: PortId,
},
EdgeKindMismatch {
edge: EdgeId,
from_kind: PortKind,
to_kind: PortKind,
},
EdgeKindPortKindMismatch {
edge: EdgeId,
edge_kind: EdgeKind,
port_kind: PortKind,
},
DuplicateEdge {
edge: EdgeId,
},
PortCapacityExceeded {
port: PortId,
capacity: PortCapacity,
count: usize,
},
SubgraphNodeMissingGraphId {
node: NodeId,
},
SubgraphNodeGraphIdNotString {
node: NodeId,
},
SubgraphNodeInvalidGraphId {
node: NodeId,
value: String,
},
SubgraphTargetNotImported {
node: NodeId,
graph_id: GraphId,
},
SymbolRefNodeMissingSymbolId {
node: NodeId,
},
SymbolRefNodeSymbolIdNotString {
node: NodeId,
},
SymbolRefNodeInvalidSymbolId {
node: NodeId,
value: String,
},
SymbolRefTargetNotDeclared {
node: NodeId,
symbol_id: SymbolId,
},
BindingTargetMissing {
binding: BindingId,
target: GraphLocalBindingTarget,
},
}Variants§
UnsupportedGraphVersion
PortMissingNode
PortMissingFromOwner
NodeParentMissingGroup
NodeInvalidSize
NodePortsMissingPort
NodePortsWrongOwner
NodePortsDuplicate
EdgeMissingPort
EdgeKindMismatch
EdgeKindPortKindMismatch
DuplicateEdge
PortCapacityExceeded
SubgraphNodeMissingGraphId
SubgraphNodeGraphIdNotString
SubgraphNodeInvalidGraphId
SubgraphTargetNotImported
SymbolRefNodeMissingSymbolId
SymbolRefNodeSymbolIdNotString
SymbolRefNodeInvalidSymbolId
SymbolRefTargetNotDeclared
BindingTargetMissing
Trait Implementations§
Source§impl Debug for GraphValidationError
impl Debug for GraphValidationError
Source§impl Display for GraphValidationError
impl Display for GraphValidationError
Source§impl Error for GraphValidationError
impl Error for GraphValidationError
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 From<SubgraphNodeError> for GraphValidationError
impl From<SubgraphNodeError> for GraphValidationError
Source§fn from(err: SubgraphNodeError) -> Self
fn from(err: SubgraphNodeError) -> Self
Converts to this type from the input type.
Source§impl From<SymbolRefNodeError> for GraphValidationError
impl From<SymbolRefNodeError> for GraphValidationError
Source§fn from(err: SymbolRefNodeError) -> Self
fn from(err: SymbolRefNodeError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for GraphValidationError
impl RefUnwindSafe for GraphValidationError
impl Send for GraphValidationError
impl Sync for GraphValidationError
impl Unpin for GraphValidationError
impl UnsafeUnpin for GraphValidationError
impl UnwindSafe for GraphValidationError
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