pub struct Connection { /* private fields */ }Expand description
A descriptive connection from a terminal to a net or node.
Implementations§
Source§impl Connection
impl Connection
Sourcepub const fn new(terminal: Terminal, target: ConnectionTarget) -> Self
pub const fn new(terminal: Terminal, target: ConnectionTarget) -> Self
Creates a connection from a terminal to a target.
Sourcepub const fn to_net(terminal: Terminal, net: NetId) -> Self
pub const fn to_net(terminal: Terminal, net: NetId) -> Self
Creates a terminal-to-net connection.
Sourcepub const fn to_node(terminal: Terminal, node: NodeId) -> Self
pub const fn to_node(terminal: Terminal, node: NodeId) -> Self
Creates a terminal-to-node connection.
Sourcepub const fn target(&self) -> &ConnectionTarget
pub const fn target(&self) -> &ConnectionTarget
Returns the connection target.
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 (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 Connection
impl Debug for Connection
Source§impl Hash for Connection
impl Hash for Connection
Source§impl Ord for Connection
impl Ord for Connection
Source§fn cmp(&self, other: &Connection) -> Ordering
fn cmp(&self, other: &Connection) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for Connection
impl PartialEq for Connection
Source§fn eq(&self, other: &Connection) -> bool
fn eq(&self, other: &Connection) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for Connection
impl PartialOrd 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 UnsafeUnpin 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