Struct libreda_db::netlist::rc_netlist::net::Net [−][src]
Copied from KLayout: A single net. A net connects multiple pins or terminals together. Pins are either pin or subcircuits of outgoing pins of the circuit the net lives in. Terminals are connections made to specific terminals of devices. Net objects are created inside a circuit with Circuit#create_net. To connect a net to an outgoing pin of a circuit, use Circuit#connect_pin, to disconnect a net from an outgoing pin use Circuit#disconnect_pin. To connect a net to a pin of a subcircuit, use SubCircuit#connect_pin, to disconnect a net from a pin of a subcircuit, use SubCircuit#disconnect_pin. To connect a net to a terminal of a device, use Device#connect_terminal, to disconnect a net from a terminal of a device, use Device#disconnect_terminal.
Implementations
impl Net
[src]
pub fn name(&self) -> Option<String>
[src]
Return the name of this net.
pub fn create_name(&self) -> String
[src]
Return the name of this net or if it is None
create a name
based on the net ID.
TODO: There is no guarantee yet that this name is collision free.
pub fn create_qname(&self) -> String
[src]
Return a qualified name of this net of the form CIRCUIT_NAME:NET_NAME
.
TODO: There is no guarantee yet that this name is collision free.
pub fn rename<S: Into<String>>(&self, name: Option<S>)
[src]
pub fn id(&self) -> NetIndex
[src]
Get the index of this net. The index uniquely identifies this net within the circuit.
pub fn pins(&self) -> impl Deref<Target = HashSet<Rc<Pin>>> + '_
[src]
Get borrowed reference to the set of pins.
pub fn pins_instances(
&self
) -> impl Deref<Target = HashSet<Rc<PinInstance>>> + '_
[src]
&self
) -> impl Deref<Target = HashSet<Rc<PinInstance>>> + '_
Get borrowed reference to the set of pin instances.
pub fn each_terminal(&self) -> impl Iterator<Item = TerminalRef> + '_
[src]
Iterate over all pins and pin instances connected to this net.
pub fn each_pin_instance(&self) -> impl Iterator<Item = Rc<PinInstance>> + '_
[src]
Iterate over all pin instances connected to this net.
pub fn each_pin(&self) -> impl Iterator<Item = Rc<Pin>> + '_
[src]
Iterate over all pins connected to this net.
pub fn each_instance(&self) -> impl Iterator<Item = Rc<CircuitInstance>> + '_
[src]
Find each circuit instance that is connected to this net.
pub fn parent_circuit(&self) -> Weak<Circuit>
[src]
Get the circuit where this net lives in.
pub fn num_pins(&self) -> usize
[src]
Return the number of pins connected to this net.
pub fn num_pin_instances(&self) -> usize
[src]
Return the number of pin instances connected to this net.
pub fn num_terminals(&self) -> usize
[src]
Return the number of terminals (pins and pin instances) connected to this net.
Trait Implementations
impl Debug for Net
[src]
impl Eq for Net
[src]
impl Hash for Net
[src]
fn hash<H: Hasher>(&self, state: &mut H)
[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl PartialEq<Net> for Net
[src]
Auto Trait Implementations
impl !RefUnwindSafe for Net
impl !Send for Net
impl !Sync for Net
impl Unpin for Net
impl !UnwindSafe for Net
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,