Struct Capacitor
pub struct Capacitor { /* private fields */ }Expand description
Capacitor — energy-storage element.
b[n] = z^{-1} a[n] (previous incident becomes current reflected)
Rp = 1 / (2 * fs * C)
Implementations§
Trait Implementations§
impl Copy for Capacitor
§impl WdfLeaf for Capacitor
impl WdfLeaf for Capacitor
§fn port_resistance(&self) -> f64
fn port_resistance(&self) -> f64
Port resistance seen looking into this element (Ω).
§fn set_incident(&mut self, a: f64)
fn set_incident(&mut self, a: f64)
Accept the incident wave after scatter_down phase. Read more
§fn set_sample_rate(&mut self, sample_rate: f64)
fn set_sample_rate(&mut self, sample_rate: f64)
Update sample rate (for reactive elements C, L).
Auto Trait Implementations§
impl Freeze for Capacitor
impl RefUnwindSafe for Capacitor
impl Send for Capacitor
impl Sync for Capacitor
impl Unpin for Capacitor
impl UnsafeUnpin for Capacitor
impl UnwindSafe for Capacitor
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