pub struct PortDef {
pub name: String,
pub direction: PortDirection,
pub impedance: Option<f64>,
}Expand description
Named port declaration from the .pedal DSL.
ports {
audio_in: input
cv_cutoff: input
audio_out: output
}Fields§
§name: String§direction: PortDirection§impedance: Option<f64>Optional source/load impedance in Ohms.
When set, the WDF VoltageSource gets this Rp instead of the default 1Ω.
Syntax: audio_in: input(10k) → impedance = Some(10_000.0)
Trait Implementations§
impl StructuralPartialEq for PortDef
Auto Trait Implementations§
impl Freeze for PortDef
impl RefUnwindSafe for PortDef
impl Send for PortDef
impl Sync for PortDef
impl Unpin for PortDef
impl UnsafeUnpin for PortDef
impl UnwindSafe for PortDef
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