pub struct DeviceAnnotation {
pub element: String,
pub device_letter: char,
pub key: String,
pub value: String,
pub line: usize,
}Expand description
One registered key=value field read off a device card and carried through unexamined.
Fields§
§element: StringThe annotated element’s name, as the netlist spells it (dotted-path-resolved when the
card came from inside a .subckt, like every other name this crate reports).
device_letter: charIts SPICE device letter, so a consumer can tell an inductor’s rating from a switch’s without re-parsing the deck.
key: StringThe field name, lowercased — fields are case-insensitive in every SPICE dialect.
value: StringThe value exactly as written, including its suffix: 60, 36u, console.
line: usizeLine the card starts on, for a diagnostic that points at the netlist.
Trait Implementations§
Source§impl Clone for DeviceAnnotation
impl Clone for DeviceAnnotation
Source§impl Debug for DeviceAnnotation
impl Debug for DeviceAnnotation
impl Eq for DeviceAnnotation
Source§impl PartialEq for DeviceAnnotation
impl PartialEq for DeviceAnnotation
impl StructuralPartialEq for DeviceAnnotation
Auto Trait Implementations§
impl Forget for DeviceAnnotation
impl Freeze for DeviceAnnotation
impl Move for DeviceAnnotation
impl RefUnwindSafe for DeviceAnnotation
impl Send for DeviceAnnotation
impl Sync for DeviceAnnotation
impl Unpin for DeviceAnnotation
impl UnsafeUnpin for DeviceAnnotation
impl UnwindSafe for DeviceAnnotation
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