pub enum CpsEvalError {
Show 16 variants
MissingFunction {
name: String,
},
MissingContinuation {
function: String,
id: CpsContinuationId,
},
MissingHandler {
function: String,
id: CpsHandlerId,
},
ContinuationArgumentMismatch {
function: String,
id: CpsContinuationId,
expected: usize,
actual: usize,
},
FunctionArgumentMismatch {
function: String,
expected: usize,
actual: usize,
},
MissingValue {
function: String,
id: CpsValueId,
},
ExpectedPlainValue {
function: String,
id: CpsValueId,
},
ExpectedResumption {
function: String,
id: CpsValueId,
},
UnsupportedPrimitive {
op: PrimitiveOp,
},
PrimitiveTypeMismatch {
op: PrimitiveOp,
value: VmValue,
},
InvalidPrimitiveArity {
op: PrimitiveOp,
expected: usize,
actual: usize,
},
ExpectedRecord {
function: String,
value: VmValue,
},
MissingRecordField {
function: String,
field: Name,
},
MissingGuard,
ExpectedGuard {
function: String,
id: CpsValueId,
value: VmValue,
},
EscapedScopeReturn {
function: String,
prompt: u64,
target: CpsContinuationId,
},
}Variants§
MissingFunction
MissingContinuation
MissingHandler
ContinuationArgumentMismatch
FunctionArgumentMismatch
MissingValue
ExpectedPlainValue
ExpectedResumption
UnsupportedPrimitive
Fields
§
op: PrimitiveOpPrimitiveTypeMismatch
InvalidPrimitiveArity
ExpectedRecord
MissingRecordField
MissingGuard
ExpectedGuard
EscapedScopeReturn
A ScopeReturn reached the root without ever finding its prompt
in active_handlers. This is a lowering bug — every Perform
must lead to an arm whose enclosing handler scope is still on
the stack.
Trait Implementations§
Source§impl Clone for CpsEvalError
impl Clone for CpsEvalError
Source§fn clone(&self) -> CpsEvalError
fn clone(&self) -> CpsEvalError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 CpsEvalError
impl Debug for CpsEvalError
Source§impl Display for CpsEvalError
impl Display for CpsEvalError
Source§impl Error for CpsEvalError
impl Error for CpsEvalError
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()
Source§impl From<CpsEvalError> for CpsCompareError
impl From<CpsEvalError> for CpsCompareError
Source§fn from(value: CpsEvalError) -> Self
fn from(value: CpsEvalError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for CpsEvalError
impl PartialEq for CpsEvalError
Source§fn eq(&self, other: &CpsEvalError) -> bool
fn eq(&self, other: &CpsEvalError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CpsEvalError
Auto Trait Implementations§
impl Freeze for CpsEvalError
impl RefUnwindSafe for CpsEvalError
impl !Send for CpsEvalError
impl !Sync for CpsEvalError
impl Unpin for CpsEvalError
impl UnsafeUnpin for CpsEvalError
impl UnwindSafe for CpsEvalError
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