pub struct SubcircuitDef {
pub name: String,
pub rate: Option<u32>,
pub components: Vec<ComponentDef>,
pub nets: Vec<NetDef>,
pub controls: Vec<ControlDef>,
pub trims: Vec<ControlDef>,
pub monitors: Vec<MonitorDef>,
pub mirrors: HashMap<String, String>,
}Expand description
A subcircuit block within a pedal/equipment definition. Subcircuits partition a circuit into named sub-networks that can have independent rate domains (e.g., audio path vs. sidechain).
Fields§
§name: StringName of the subcircuit (e.g., “sidechain”, “audio”).
rate: Option<u32>Optional decimation factor (power of 2). None = full audio rate.
components: Vec<ComponentDef>Components local to this subcircuit.
nets: Vec<NetDef>Internal nets. Node names not resolving to component pins or reserved nodes (gnd, vcc, supply rails) become implicit ports.
controls: Vec<ControlDef>Controls scoped to this subcircuit.
trims: Vec<ControlDef>Trims scoped to this subcircuit.
monitors: Vec<MonitorDef>Monitor definitions scoped to this subcircuit.
mirrors: HashMap<String, String>Mirrored pot mappings within this subcircuit.
Trait Implementations§
Source§impl Clone for SubcircuitDef
impl Clone for SubcircuitDef
Source§fn clone(&self) -> SubcircuitDef
fn clone(&self) -> SubcircuitDef
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SubcircuitDef
impl Debug for SubcircuitDef
Source§impl PartialEq for SubcircuitDef
impl PartialEq for SubcircuitDef
Source§fn eq(&self, other: &SubcircuitDef) -> bool
fn eq(&self, other: &SubcircuitDef) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SubcircuitDef
Auto Trait Implementations§
impl !RefUnwindSafe for SubcircuitDef
impl !Send for SubcircuitDef
impl !Sync for SubcircuitDef
impl !UnwindSafe for SubcircuitDef
impl Freeze for SubcircuitDef
impl Unpin for SubcircuitDef
impl UnsafeUnpin for SubcircuitDef
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