#[non_exhaustive]pub enum TerminalIndexError {
DuplicateBus {
bus: String,
},
DuplicateTerminal {
bus: String,
terminal: String,
},
}Expand description
Why a network’s terminals cannot be indexed.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
DuplicateBus
Two buses share one identity, compared ASCII case insensitively.
DuplicateTerminal
A bus states one terminal twice.
Trait Implementations§
Source§impl Clone for TerminalIndexError
impl Clone for TerminalIndexError
Source§fn clone(&self) -> TerminalIndexError
fn clone(&self) -> TerminalIndexError
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 TerminalIndexError
impl Debug for TerminalIndexError
Source§impl Display for TerminalIndexError
impl Display for TerminalIndexError
impl Eq for TerminalIndexError
Source§impl Error for TerminalIndexError
impl Error for TerminalIndexError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl PartialEq for TerminalIndexError
impl PartialEq for TerminalIndexError
impl StructuralPartialEq for TerminalIndexError
Auto Trait Implementations§
impl Freeze for TerminalIndexError
impl RefUnwindSafe for TerminalIndexError
impl Send for TerminalIndexError
impl Sync for TerminalIndexError
impl Unpin for TerminalIndexError
impl UnsafeUnpin for TerminalIndexError
impl UnwindSafe for TerminalIndexError
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.