pub enum WireMatch {
Complete {
wires: Vec<Wire>,
},
Partial {
wires: Vec<Wire>,
unfitted: Vec<PortName>,
ambiguous: Vec<(PortName, Vec<PortName>)>,
},
None,
}Expand description
Outcome of matching a dependent element’s plugs against a target element’s sockets.
Variants§
Complete
Every plug on the dependent has exactly one fitting socket on the target.
Partial
Mixed outcome: some plugs wired, others unfitted or ambiguous.
Fields
None
The dependent has at least one plug and none of its plugs have any fitting socket on the target.
Trait Implementations§
impl Eq for WireMatch
impl StructuralPartialEq for WireMatch
Auto Trait Implementations§
impl Freeze for WireMatch
impl RefUnwindSafe for WireMatch
impl Send for WireMatch
impl Sync for WireMatch
impl Unpin for WireMatch
impl UnsafeUnpin for WireMatch
impl UnwindSafe for WireMatch
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.