pub enum ProximateShellError {
SyntaxError {
problem: Spanned<String>,
},
UnexpectedEof {
expected: String,
span: Span,
},
TypeError {
expected: String,
actual: Spanned<Option<String>>,
},
MissingProperty {
subpath: Spanned<String>,
expr: Spanned<String>,
},
InvalidIntegerIndex {
subpath: Spanned<String>,
integer: Span,
},
MissingValue {
span: Option<Span>,
reason: String,
},
ArgumentError {
command: Spanned<String>,
error: ArgumentError,
},
RangeError {
kind: ExpectedRange,
actual_kind: Spanned<String>,
operation: String,
},
Diagnostic(ShellDiagnostic),
CoerceError {
left: Spanned<String>,
right: Spanned<String>,
},
UntaggedRuntimeError {
reason: String,
},
Unimplemented {
reason: String,
},
}
Variants§
SyntaxError
UnexpectedEof
TypeError
MissingProperty
InvalidIntegerIndex
MissingValue
ArgumentError
RangeError
Diagnostic(ShellDiagnostic)
CoerceError
UntaggedRuntimeError
Unimplemented
Trait Implementations§
Source§impl Clone for ProximateShellError
impl Clone for ProximateShellError
Source§fn clone(&self) -> ProximateShellError
fn clone(&self) -> ProximateShellError
Returns a copy 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 Debug for ProximateShellError
impl Debug for ProximateShellError
Source§impl<'de> Deserialize<'de> for ProximateShellError
impl<'de> Deserialize<'de> for ProximateShellError
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl HasFallibleSpan for ProximateShellError
impl HasFallibleSpan for ProximateShellError
fn maybe_span(&self) -> Option<Span>
Source§impl Hash for ProximateShellError
impl Hash for ProximateShellError
Source§impl Ord for ProximateShellError
impl Ord for ProximateShellError
Source§fn cmp(&self, other: &ProximateShellError) -> Ordering
fn cmp(&self, other: &ProximateShellError) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ProximateShellError
impl PartialEq for ProximateShellError
Source§impl PartialOrd for ProximateShellError
impl PartialOrd for ProximateShellError
Source§impl Serialize for ProximateShellError
impl Serialize for ProximateShellError
impl Eq for ProximateShellError
impl StructuralPartialEq for ProximateShellError
Auto Trait Implementations§
impl Freeze for ProximateShellError
impl RefUnwindSafe for ProximateShellError
impl Send for ProximateShellError
impl Sync for ProximateShellError
impl Unpin for ProximateShellError
impl UnwindSafe for ProximateShellError
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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.