pub enum Pin {
Reserved(String),
ComponentPin {
component: String,
pin: String,
},
Fork {
switch: String,
destinations: Vec<Pin>,
},
SubcircuitPort {
subcircuit: String,
port: String,
},
}Expand description
A pin reference – either a reserved node (in, out, gnd, vcc),
a component pin (C1.a, R1.b), or a fork for dynamic routing.
Variants§
Reserved(String)
ComponentPin
Fork
Dynamic routing controlled by a switch component.
fork(SW_time, [B8.a, B9.a]) routes signal to one of the destinations
based on the switch position.
Fields
SubcircuitPort
Reference to a subcircuit port from the parent scope.
audio.ctrl → SubcircuitPort { subcircuit: “audio”, port: “ctrl” }
Trait Implementations§
impl Eq for Pin
impl StructuralPartialEq for Pin
Auto Trait Implementations§
impl Freeze for Pin
impl RefUnwindSafe for Pin
impl Send for Pin
impl Sync for Pin
impl Unpin for Pin
impl UnsafeUnpin for Pin
impl UnwindSafe for Pin
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.