Struct VoltageSource
pub struct VoltageSource { /* private fields */ }Expand description
Ideal voltage source (e.g. input signal injector).
b = 2 * Vs - a where Vs is the source voltage.
Port resistance set to a small value (near-ideal source).
Implementations§
§impl VoltageSource
impl VoltageSource
pub fn new(port_resistance: f64) -> VoltageSource
pub fn set_voltage(&mut self, v: f64)
pub fn voltage(&self) -> f64
Trait Implementations§
§impl Clone for VoltageSource
impl Clone for VoltageSource
§fn clone(&self) -> VoltageSource
fn clone(&self) -> VoltageSource
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 moreimpl Copy for VoltageSource
§impl Debug for VoltageSource
impl Debug for VoltageSource
§impl WdfLeaf for VoltageSource
impl WdfLeaf for VoltageSource
§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 VoltageSource
impl RefUnwindSafe for VoltageSource
impl Send for VoltageSource
impl Sync for VoltageSource
impl Unpin for VoltageSource
impl UnsafeUnpin for VoltageSource
impl UnwindSafe for VoltageSource
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