pub struct DeviceMatch {
pub reference: String,
pub model: String,
pub ours: (f64, f64, f64),
pub spice: (f64, f64, f64),
pub d_vbe: f64,
pub d_vce: f64,
pub d_ic_pct: f64,
}Expand description
Per-device MATCH comparison (ours vs ngspice).
Fields§
§reference: String§model: String§ours: (f64, f64, f64)Our reading (Vbe, Vce, Ic).
spice: (f64, f64, f64)ngspice .op (Vbe, Vce, Ic).
d_vbe: f64ΔVbe = ours − spice (volts), compared on junction magnitude.
d_vce: f64ΔVce = ours − spice (volts), compared on magnitude.
d_ic_pct: f64ΔIc as a percentage of |spice Ic| (∞-guarded: 0 when spice Ic ≈ 0).
Trait Implementations§
Source§impl Clone for DeviceMatch
impl Clone for DeviceMatch
Source§fn clone(&self) -> DeviceMatch
fn clone(&self) -> DeviceMatch
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 moreSource§impl Debug for DeviceMatch
impl Debug for DeviceMatch
Source§impl<'de> Deserialize<'de> for DeviceMatch
impl<'de> Deserialize<'de> for DeviceMatch
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for DeviceMatch
impl RefUnwindSafe for DeviceMatch
impl Send for DeviceMatch
impl Sync for DeviceMatch
impl Unpin for DeviceMatch
impl UnsafeUnpin for DeviceMatch
impl UnwindSafe for DeviceMatch
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