pub struct Wire {
pub net: String,
pub points: Vec<[f32; 2]>,
pub signal_path: bool,
pub monitor_index_start: Option<usize>,
pub monitor_index_end: Option<usize>,
}Expand description
A routed wire (sequence of orthogonal segments).
Fields§
§net: StringNet name (e.g., "net_3", "vcc", "gnd").
points: Vec<[f32; 2]>Ordered waypoints [x, y] defining the wire path.
signal_path: boolWhether this wire is on the primary signal path.
monitor_index_start: Option<usize>Monitor index at the start of this wire segment (for glow interpolation).
monitor_index_end: Option<usize>Monitor index at the end of this wire segment.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Wire
impl<'de> Deserialize<'de> for Wire
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 Wire
impl RefUnwindSafe for Wire
impl Send for Wire
impl Sync for Wire
impl Unpin for Wire
impl UnsafeUnpin for Wire
impl UnwindSafe for Wire
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