pub struct SpiceOpSnapshot {
pub circuit: String,
pub devices: Vec<SpiceDeviceOp>,
pub nodes: BTreeMap<String, f64>,
}Expand description
A full ngspice .op snapshot: per-device operating points plus node voltages.
This is the ngspice-derived golden for the bias-accuracy dimension. It is
serialized to golden/op/<circuit>.json and is never WDF-bootstrapped.
Fields§
§circuit: StringSource deck name (file stem).
devices: Vec<SpiceDeviceOp>Per-device operating points (BJTs), keyed by uppercased device ref.
nodes: BTreeMap<String, f64>DC node voltages (node name → volts).
Trait Implementations§
Source§impl Clone for SpiceOpSnapshot
impl Clone for SpiceOpSnapshot
Source§fn clone(&self) -> SpiceOpSnapshot
fn clone(&self) -> SpiceOpSnapshot
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 SpiceOpSnapshot
impl Debug for SpiceOpSnapshot
Source§impl<'de> Deserialize<'de> for SpiceOpSnapshot
impl<'de> Deserialize<'de> for SpiceOpSnapshot
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 SpiceOpSnapshot
impl RefUnwindSafe for SpiceOpSnapshot
impl Send for SpiceOpSnapshot
impl Sync for SpiceOpSnapshot
impl Unpin for SpiceOpSnapshot
impl UnsafeUnpin for SpiceOpSnapshot
impl UnwindSafe for SpiceOpSnapshot
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