pub struct MulticonductorTerminalIndex { /* private fields */ }Expand description
Every declared terminal of a multiconductor network at one flat position.
Implementations§
Source§impl MulticonductorTerminalIndex
impl MulticonductorTerminalIndex
Sourcepub fn build(
network: &MulticonductorNetwork,
) -> Result<MulticonductorTerminalIndex, TerminalIndexError>
pub fn build( network: &MulticonductorNetwork, ) -> Result<MulticonductorTerminalIndex, TerminalIndexError>
Index network’s terminals: bus table order, each bus’s stated
terminal order. Grounded terminals and terminal 0 are indexed like
any other; whether a calculation treats one as ground is its own rule.
§Errors
Two buses whose identities differ only in ASCII case, or a bus that states a terminal twice.
Sourcepub fn terminals(&self) -> &[(String, String)]
pub fn terminals(&self) -> &[(String, String)]
Position to (bus, terminal), in the network’s own spelling.
Sourcepub fn resolve(&self, bus: &str, terminal: &str) -> Option<usize>
pub fn resolve(&self, bus: &str, terminal: &str) -> Option<usize>
The position of terminal terminal of bus bus (bus compared ASCII
case insensitively), or None for an undeclared terminal.
Sourcepub fn bus_terminals(&self, bus: &str) -> Vec<usize>
pub fn bus_terminals(&self, bus: &str) -> Vec<usize>
The positions of one bus’s terminals, ascending; empty for an undeclared bus.
Trait Implementations§
Source§impl Clone for MulticonductorTerminalIndex
impl Clone for MulticonductorTerminalIndex
Source§fn clone(&self) -> MulticonductorTerminalIndex
fn clone(&self) -> MulticonductorTerminalIndex
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 MulticonductorTerminalIndex
impl Debug for MulticonductorTerminalIndex
Source§impl Default for MulticonductorTerminalIndex
impl Default for MulticonductorTerminalIndex
Source§fn default() -> MulticonductorTerminalIndex
fn default() -> MulticonductorTerminalIndex
Returns the “default value” for a type. Read more
impl Eq for MulticonductorTerminalIndex
impl StructuralPartialEq for MulticonductorTerminalIndex
Auto Trait Implementations§
impl Freeze for MulticonductorTerminalIndex
impl RefUnwindSafe for MulticonductorTerminalIndex
impl Send for MulticonductorTerminalIndex
impl Sync for MulticonductorTerminalIndex
impl Unpin for MulticonductorTerminalIndex
impl UnsafeUnpin for MulticonductorTerminalIndex
impl UnwindSafe for MulticonductorTerminalIndex
Blanket Implementations§
impl<T> Allocation for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.