pub struct Connection {
pub source_chip_idx: usize,
pub source_pin: usize,
pub dest_chip_idx: usize,
pub dest_pin: usize,
}
Expand description
Represents a connection between two chip pins.
Fields§
§source_chip_idx: usize
Index of the source chip in the Circuit::chips
vector.
source_pin: usize
1-based pin number on the source chip.
dest_chip_idx: usize
Index of the destination chip in the Circuit::chips
vector.
dest_pin: usize
1-based pin number on the destination chip.
Trait Implementations§
Source§impl Clone for Connection
impl Clone for Connection
Source§fn clone(&self) -> Connection
fn clone(&self) -> Connection
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for Connection
impl Debug for Connection
Source§impl Hash for Connection
impl Hash for Connection
Source§impl PartialEq for Connection
impl PartialEq for Connection
impl Eq for Connection
impl StructuralPartialEq for Connection
Auto Trait Implementations§
impl Freeze for Connection
impl RefUnwindSafe for Connection
impl Send for Connection
impl Sync for Connection
impl Unpin for Connection
impl UnwindSafe for Connection
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