#[non_exhaustive]pub enum RoleInconsistency {
NoPath {
element: EntityId,
role: ElementRole,
has_inlet: bool,
has_outlet: bool,
},
UndirectedPorts {
element: EntityId,
count: usize,
},
}Expand description
A disagreement between an element’s role and how its ports are directed.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
NoPath
An element that should pass flow has no way in, or no way out.
A segment with two SOURCE ports cannot receive anything: whatever the exporter intended, nothing can flow through it as stated.
Fields
§
role: ElementRoleIts role.
UndirectedPorts
An element carries ports whose direction the file never stated.
Not an error: FlowDirection is OPTIONAL. It is reported because an
undirected port cannot orient an edge, so downstream queries will stop
at it and a caller deserves to know why.
Trait Implementations§
Source§impl Clone for RoleInconsistency
impl Clone for RoleInconsistency
Source§impl Debug for RoleInconsistency
impl Debug for RoleInconsistency
impl Eq for RoleInconsistency
Source§impl PartialEq for RoleInconsistency
impl PartialEq for RoleInconsistency
impl StructuralPartialEq for RoleInconsistency
Auto Trait Implementations§
impl Freeze for RoleInconsistency
impl RefUnwindSafe for RoleInconsistency
impl Send for RoleInconsistency
impl Sync for RoleInconsistency
impl Unpin for RoleInconsistency
impl UnsafeUnpin for RoleInconsistency
impl UnwindSafe for RoleInconsistency
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