pub enum AttributeError {
DuplicateKey {
key: String,
tiers: Vec<Tier>,
},
EmptyFacetSet {
port: String,
},
DuplicatePortName {
name: String,
},
}Expand description
Errors raised by attribute-layer construction and validation.
Variants§
DuplicateKey
The same key appears in multiple tiers on one entity.
EmptyFacetSet
A plug or socket declared no facets.
DuplicatePortName
Two plugs, two sockets, or a plug and a socket share a name.
Trait Implementations§
Source§impl Debug for AttributeError
impl Debug for AttributeError
Source§impl Display for AttributeError
impl Display for AttributeError
Source§impl Error for AttributeError
impl Error for AttributeError
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 From<AttributeError> for ElementError
impl From<AttributeError> for ElementError
Source§fn from(source: AttributeError) -> Self
fn from(source: AttributeError) -> Self
Converts to this type from the input type.
Source§impl From<AttributeError> for Error
impl From<AttributeError> for Error
Source§fn from(source: AttributeError) -> Self
fn from(source: AttributeError) -> Self
Converts to this type from the input type.
Source§impl From<AttributeError> for ParameterError
impl From<AttributeError> for ParameterError
Source§fn from(source: AttributeError) -> Self
fn from(source: AttributeError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for AttributeError
impl PartialEq for AttributeError
impl Eq for AttributeError
impl StructuralPartialEq for AttributeError
Auto Trait Implementations§
impl Freeze for AttributeError
impl RefUnwindSafe for AttributeError
impl Send for AttributeError
impl Sync for AttributeError
impl Unpin for AttributeError
impl UnsafeUnpin for AttributeError
impl UnwindSafe for AttributeError
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
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.