pub struct SimpleLink {
pub id: i32,
pub start_pin_id: i32,
pub end_pin_id: i32,
pub color: Color,
pub line_width: f32,
pub status: i32,
}Expand description
Fields§
§id: i32§start_pin_id: i32§end_pin_id: i32§color: Color§line_width: f32§status: i32Implementations§
Trait Implementations§
Source§impl Clone for SimpleLink
impl Clone for SimpleLink
Source§impl Debug for SimpleLink
impl Debug for SimpleLink
Source§impl LinkModel for SimpleLink
impl LinkModel for SimpleLink
Source§fn start_pin_id(&self) -> i32
fn start_pin_id(&self) -> i32
Pin ID where the link starts (typically an output pin)
Source§fn end_pin_id(&self) -> i32
fn end_pin_id(&self) -> i32
Pin ID where the link ends (typically an input pin)
Source§fn color(&self) -> Color
fn color(&self) -> Color
Color for rendering the link (default: white).
Used as fallback when
status() returns -1 (no status).Source§fn line_width(&self) -> f32
fn line_width(&self) -> f32
Line width in pixels for rendering the link (default: 2.0)
Auto Trait Implementations§
impl Freeze for SimpleLink
impl RefUnwindSafe for SimpleLink
impl Send for SimpleLink
impl Sync for SimpleLink
impl Unpin for SimpleLink
impl UnsafeUnpin for SimpleLink
impl UnwindSafe for SimpleLink
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