#[non_exhaustive]pub enum DiagnosticReason {
Index {
object_type: &'static str,
key: Option<String>,
},
Call {
value_type: &'static str,
},
Arithmetic {
operation: &'static str,
left_type: &'static str,
right_type: &'static str,
},
}Expand description
Facts captured by a failing script operation.
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.
Index
A value could not be indexed.
Fields
Call
A value could not be called.
Arithmetic
An arithmetic operation received incompatible values.
Trait Implementations§
Source§impl Clone for DiagnosticReason
impl Clone for DiagnosticReason
Source§fn clone(&self) -> DiagnosticReason
fn clone(&self) -> DiagnosticReason
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for DiagnosticReason
impl RefUnwindSafe for DiagnosticReason
impl Send for DiagnosticReason
impl Sync for DiagnosticReason
impl Unpin for DiagnosticReason
impl UnsafeUnpin for DiagnosticReason
impl UnwindSafe for DiagnosticReason
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