pub enum DessertError {
Reflect {
error: ReflectError,
span: Option<Span>,
},
CannotBorrow {
message: Cow<'static, str>,
},
}Expand description
Error type for dessert operations.
Variants§
Reflect
A reflection error occurred.
Fields
§
error: ReflectErrorThe underlying reflection error.
CannotBorrow
Cannot borrow from input.
Trait Implementations§
Source§impl Debug for DessertError
impl Debug for DessertError
Source§impl Display for DessertError
impl Display for DessertError
Source§impl Error for DessertError
impl Error for DessertError
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<ReflectError> for DessertError
impl From<ReflectError> for DessertError
Source§fn from(error: ReflectError) -> Self
fn from(error: ReflectError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for DessertError
impl RefUnwindSafe for DessertError
impl Send for DessertError
impl Sync for DessertError
impl Unpin for DessertError
impl UnwindSafe for DessertError
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