Struct WdfTapeHeadVoltage
pub struct WdfTapeHeadVoltage {
pub comp_id: Option<String>,
pub root: TapeHeadVoltageRoot,
pub last_b: f64,
}Fields§
§comp_id: Option<String>§root: TapeHeadVoltageRoot§last_b: f64Implementations§
§impl WdfTapeHeadVoltage
impl WdfTapeHeadVoltage
Trait Implementations§
§impl Clone for WdfTapeHeadVoltage
impl Clone for WdfTapeHeadVoltage
§fn clone(&self) -> WdfTapeHeadVoltage
fn clone(&self) -> WdfTapeHeadVoltage
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 more§impl Debug for WdfTapeHeadVoltage
impl Debug for WdfTapeHeadVoltage
§impl WdfLeaf for WdfTapeHeadVoltage
impl WdfLeaf for WdfTapeHeadVoltage
§fn set_incident(&mut self, a: f64)
fn set_incident(&mut self, a: f64)
Scatter-down: accept incident wave and update state.
§fn port_resistance(&self) -> f64
fn port_resistance(&self) -> f64
Port resistance (Ω).
fn is_reactive(&self) -> bool
fn debug_info(&self) -> String
fn clone_box(&self) -> Box<dyn WdfLeaf>
§fn set_complement(&mut self)
fn set_complement(&mut self)
Mark this pot half as the complement: uses 1-value on set_control.
§fn leaf_voltage(&self) -> f64
fn leaf_voltage(&self) -> f64
Voltage at this leaf after the WDF cycle.
§fn set_control(&mut self, _id: &str, _value: f64) -> bool
fn set_control(&mut self, _id: &str, _value: f64) -> bool
Generic control: pot position, LED drive, Vgs, switch position, etc.
Returns true if this leaf handled the control.
§fn set_resistance(&mut self, _ohms: f64) -> bool
fn set_resistance(&mut self, _ohms: f64) -> bool
Direct resistance override. Returns true if handled.
§fn set_voltage(&mut self, _v: f64) -> bool
fn set_voltage(&mut self, _v: f64) -> bool
Voltage source update. Returns true if handled.
§fn update_sample_rate(&mut self, _fs: f64)
fn update_sample_rate(&mut self, _fs: f64)
Reactive element sample rate update.
§fn is_dynamic(&self) -> bool
fn is_dynamic(&self) -> bool
Whether this leaf’s impedance can change at runtime (pots, modulated elements).
Used by DynNode to skip recomputation of static subtrees.
§fn one_port_state(&self) -> Option<OnePortState>
fn one_port_state(&self) -> Option<OnePortState>
Export this leaf’s runtime one-port state, when it has explicit reactive memory. Read more
§fn set_one_port_state(&mut self, _state: OnePortState) -> bool
fn set_one_port_state(&mut self, _state: OnePortState) -> bool
Import a shared one-port state into this leaf.
fn editable_info(&self) -> Option<(&'static str, f64)>
§fn unit_delay_state(&self) -> Option<f64>
fn unit_delay_state(&self) -> Option<f64>
For UnitDelay: return the outgoing state.
§fn set_unit_delay_partner(&mut self, _val: f64) -> bool
fn set_unit_delay_partner(&mut self, _val: f64) -> bool
For UnitDelay: set the incoming partner state.
§fn pot_position(&self) -> Option<f64>
fn pot_position(&self) -> Option<f64>
For Pot: return the current position (0.0..1.0).
§fn pot_max_resistance(&self) -> Option<f64>
fn pot_max_resistance(&self) -> Option<f64>
For Pot: return the max resistance.
§fn is_complement(&self) -> bool
fn is_complement(&self) -> bool
For Pot: return whether this half uses complement (1-position).
Auto Trait Implementations§
impl Freeze for WdfTapeHeadVoltage
impl RefUnwindSafe for WdfTapeHeadVoltage
impl Send for WdfTapeHeadVoltage
impl Sync for WdfTapeHeadVoltage
impl Unpin for WdfTapeHeadVoltage
impl UnsafeUnpin for WdfTapeHeadVoltage
impl UnwindSafe for WdfTapeHeadVoltage
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