pub struct CapConfig {
pub value: f64,
pub cap_type: CapType,
pub leakage: Option<f64>,
pub da: Option<f64>,
}Expand description
Extended capacitor configuration with parasitic modeling.
Supports leakage resistance (parallel R) and dielectric absorption.
Fields§
§value: f64Capacitance value in Farads.
cap_type: CapTypeDielectric type (affects default parasitics).
leakage: Option<f64>Parallel leakage resistance in ohms. None = ideal (infinite). Typical values: 100kΩ (worn electrolytic) to 10MΩ (new electrolytic).
da: Option<f64>Dielectric absorption coefficient (0.0 to 1.0). None = no DA. Represents fraction of charge that “soaks in” and slowly returns. Typical: 0.01-0.05 for electrolytics, <0.001 for film.
Implementations§
Trait Implementations§
impl Copy for CapConfig
impl StructuralPartialEq for CapConfig
Auto Trait Implementations§
impl Freeze for CapConfig
impl RefUnwindSafe for CapConfig
impl Send for CapConfig
impl Sync for CapConfig
impl Unpin for CapConfig
impl UnsafeUnpin for CapConfig
impl UnwindSafe for CapConfig
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