pub struct PlacedComponent {
pub name: String,
pub kind: String,
pub x: f32,
pub y: f32,
pub orientation: u16,
pub symbol: String,
pub group: String,
pub label: Option<String>,
pub monitor_index: Option<usize>,
}Expand description
A component placed on the schematic.
Fields§
§name: StringComponent ID from the DSL (e.g., "V1a", "R_plate").
kind: StringComponent kind string (e.g., "triode", "resistor").
x: f32X position in layout units.
y: f32Y position in layout units.
orientation: u16Rotation in degrees (0, 90, 180, 270).
symbol: StringSymbol identifier for rendering.
group: StringFunctional group this component belongs to.
label: Option<String>Human-readable value label (e.g., "100k", "220nF").
monitor_index: Option<usize>If this component is monitored, the monitor index for glow mapping.
Trait Implementations§
Source§impl Clone for PlacedComponent
impl Clone for PlacedComponent
Source§fn clone(&self) -> PlacedComponent
fn clone(&self) -> PlacedComponent
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 PlacedComponent
impl Debug for PlacedComponent
Source§impl<'de> Deserialize<'de> for PlacedComponent
impl<'de> Deserialize<'de> for PlacedComponent
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 PlacedComponent
impl RefUnwindSafe for PlacedComponent
impl Send for PlacedComponent
impl Sync for PlacedComponent
impl Unpin for PlacedComponent
impl UnsafeUnpin for PlacedComponent
impl UnwindSafe for PlacedComponent
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