pub enum TrialError {
Name(NameError),
EmptyElementAssignments {
element: String,
},
MisaddressedValue {
expected: ParameterName,
actual: ParameterName,
},
}Expand description
Errors from Trial / Assignments construction.
Separate from the broader crate Error so the construction path
can have a narrow, matchable type. Wrapped by Error::Trial
via #[from].
Variants§
Name(NameError)
A name newtype failed validation.
EmptyElementAssignments
An element’s inner parameter map is empty.
MisaddressedValue
A value is keyed under a parameter name that doesn’t match its
own Provenance.parameter.
Fields
§
expected: ParameterNameThe outer-map key this value was stored under.
§
actual: ParameterNameThe name the value’s provenance records.
Trait Implementations§
Source§impl Debug for TrialError
impl Debug for TrialError
Source§impl Display for TrialError
impl Display for TrialError
Source§impl Error for TrialError
impl Error for TrialError
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<NameError> for TrialError
impl From<NameError> for TrialError
Source§impl From<TrialError> for Error
impl From<TrialError> for Error
Source§fn from(source: TrialError) -> Self
fn from(source: TrialError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for TrialError
impl PartialEq for TrialError
impl Eq for TrialError
impl StructuralPartialEq for TrialError
Auto Trait Implementations§
impl Freeze for TrialError
impl RefUnwindSafe for TrialError
impl Send for TrialError
impl Sync for TrialError
impl Unpin for TrialError
impl UnsafeUnpin for TrialError
impl UnwindSafe for TrialError
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.