Enum NonIdealFx
pub enum NonIdealFx {
OpAmpBandwidth {
gbw: f64,
slew_rate: f64,
},
RailSaturation {
v_max: f64,
},
}Expand description
Non-ideal behavior declared by a component (from its datasheet/SPICE model).
Each variant is a distinct physical effect. A component returns a Vec of
these — the stage builder applies them as post-processing. No pattern
matching on component type anywhere in the pipeline.
Variants§
OpAmpBandwidth
Gain-bandwidth product limiting + slew rate. Applied as a first-order IIR lowpass (fc = GBW/gain) followed by sample-rate-limited dV/dt clamping.
Fields
RailSaturation
Output rail saturation (tanh soft clip at supply limits). Separate from power supply sag — this is instantaneous clamping, not the slow voltage droop under load.
Trait Implementations§
§impl Clone for NonIdealFx
impl Clone for NonIdealFx
§fn clone(&self) -> NonIdealFx
fn clone(&self) -> NonIdealFx
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 moreAuto Trait Implementations§
impl Freeze for NonIdealFx
impl RefUnwindSafe for NonIdealFx
impl Send for NonIdealFx
impl Sync for NonIdealFx
impl Unpin for NonIdealFx
impl UnsafeUnpin for NonIdealFx
impl UnwindSafe for NonIdealFx
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