#[non_exhaustive]pub enum InteractiveError<'a> {
InteractiveNotImplemented {
type_name: &'a str,
},
MethodsNotImplemented {
type_name: &'a str,
},
DebugNotImplemented {
type_name: &'static str,
},
FieldNotFound {
type_name: &'a str,
field_name: &'a str,
},
MethodNotFound {
type_name: &'a str,
method_name: &'a str,
},
FunctionNotFound {
function_name: &'a str,
},
WrongNumberOfArguments {
method_name: &'a str,
expected: usize,
found: usize,
},
ArgParseError {
method_name: &'a str,
error: ArgParseError<'a>,
},
SyntaxError,
}
Expand description
The main error type of this crate.
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.
InteractiveNotImplemented
MethodsNotImplemented
DebugNotImplemented
FieldNotFound
MethodNotFound
FunctionNotFound
WrongNumberOfArguments
ArgParseError
SyntaxError
Trait Implementations§
Source§impl<'a> Clone for InteractiveError<'a>
impl<'a> Clone for InteractiveError<'a>
Source§fn clone(&self) -> InteractiveError<'a>
fn clone(&self) -> InteractiveError<'a>
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 moreSource§impl<'a> Debug for InteractiveError<'a>
impl<'a> Debug for InteractiveError<'a>
Source§impl Display for InteractiveError<'_>
impl Display for InteractiveError<'_>
Source§impl<'a> PartialEq for InteractiveError<'a>
impl<'a> PartialEq for InteractiveError<'a>
impl<'a> Eq for InteractiveError<'a>
impl<'a> StructuralPartialEq for InteractiveError<'a>
Auto Trait Implementations§
impl<'a> Freeze for InteractiveError<'a>
impl<'a> RefUnwindSafe for InteractiveError<'a>
impl<'a> Send for InteractiveError<'a>
impl<'a> Sync for InteractiveError<'a>
impl<'a> Unpin for InteractiveError<'a>
impl<'a> UnwindSafe for InteractiveError<'a>
Blanket Implementations§
Source§impl<T> AsDebug for T
impl<T> AsDebug for T
default fn try_as_debug(&self) -> Result<&dyn Debug, InteractiveError<'_>>
Source§impl<T> AsDebug for Twhere
T: Debug,
impl<T> AsDebug for Twhere
T: Debug,
fn try_as_debug(&self) -> Result<&dyn Debug, InteractiveError<'_>>
Source§impl<T> AsInteractive for T
impl<T> AsInteractive for T
default fn try_as_interactive( &self, ) -> Result<&dyn Interactive, InteractiveError<'_>>
Source§impl<T> AsInteractiveMut for T
impl<T> AsInteractiveMut for T
default fn try_as_interactive_mut( &mut self, ) -> Result<&mut dyn Interactive, InteractiveError<'_>>
Source§impl<T> AsMethods for T
impl<T> AsMethods for T
default fn try_as_methods(&self) -> Result<&dyn Methods, InteractiveError<'_>>
Source§impl<T> AsMethodsMut for T
impl<T> AsMethodsMut for T
default fn try_as_methods_mut( &mut self, ) -> Result<&mut dyn Methods, InteractiveError<'_>>
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