Enum brane_exe::errors::FrameStackError
source · pub enum FrameStackError {
EmptyError,
OverflowError {
size: usize,
},
UndeclaredVariable {
name: String,
},
DuplicateDeclaration {
name: String,
},
UndeclaredUndeclaration {
name: String,
},
UninitializedVariable {
name: String,
},
VarTypeError {
name: String,
got: DataType,
expected: DataType,
},
VariableNotInScope {
name: String,
},
}
Expand description
Defines errors that relate to the frame stack.
Variants§
EmptyError
The FrameStack was empty but still popped.
OverflowError
The FrameStack overflowed.
UndeclaredVariable
A certain variable was not declared before it was set/gotten.
DuplicateDeclaration
A certain variable was declared twice.
UndeclaredUndeclaration
A certain variable was undeclared without it ever being declared.
UninitializedVariable
The given variable was declared but not initialized.
VarTypeError
The new value of a variable did not match the expected.
VariableNotInScope
The given variable was not known in the FrameStack.
Trait Implementations§
source§impl Debug for FrameStackError
impl Debug for FrameStackError
source§impl Display for FrameStackError
impl Display for FrameStackError
source§impl Error for FrameStackError
impl Error for FrameStackError
1.30.0 · 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()
Auto Trait Implementations§
impl Freeze for FrameStackError
impl RefUnwindSafe for FrameStackError
impl Send for FrameStackError
impl Sync for FrameStackError
impl Unpin for FrameStackError
impl UnwindSafe for FrameStackError
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> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request