Enum libreda_db::netlist::rc_netlist::terminal_ref::TerminalRef[][src]

pub enum TerminalRef {
    Pin(Rc<Pin>),
    PinInstance(Rc<PinInstance>),
}

Describes where a net is connected to.

Variants

Pin(Rc<Pin>)

Connection to a pin of the parent circuit.

PinInstance(Rc<PinInstance>)

Connection to a pin of a sub-circuit instance.

Implementations

impl TerminalRef[src]

pub fn net(&self) -> Option<Rc<Net>>[src]

Get the net to which the terminal is connected to.

pub fn terminal_id(&self) -> usize[src]

Get the ID of the terminal (pin or pin instance).

Trait Implementations

impl Clone for TerminalRef[src]

impl Debug for TerminalRef[src]

impl Eq for TerminalRef[src]

impl From<Rc<Pin>> for TerminalRef[src]

impl From<Rc<PinInstance>> for TerminalRef[src]

impl Hash for TerminalRef[src]

impl PartialEq<TerminalRef> for TerminalRef[src]

impl StructuralEq for TerminalRef[src]

impl StructuralPartialEq for TerminalRef[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> TextType for T where
    T: Clone + Eq + Debug + Hash
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.