pub enum FoldError {
Compile(String),
NotInUses {
handler: Option<String>,
method: String,
},
Computed {
handler: String,
expr: String,
},
NoAnswerFold {
handler: String,
fold: String,
},
ComputedFold {
handler: String,
expr: String,
},
CallArity {
handler: String,
args: usize,
},
NotAFold {
name: String,
},
NoHandler(String),
Run {
handler: String,
message: String,
},
}Expand description
Why handlers did not compile or a fold did not run.
Variants§
Compile(String)
The Rhai did not compile: why.
NotInUses
A handler calls method, which the component’s uses does not name.
Computed
A handler’s call names its method by an expression that is not a
string (or strings joined by +): the handler, and the expression.
NoAnswerFold
FRAME-37: a handler’s call(…, "fold") names no handler of this
component: the handler, and the name.
ComputedFold
FRAME-37: a handler’s call(…, fold) names its fold by an
expression: the handler, and the expression as written.
CallArity
FRAME-37: a handler’s call with more than three arguments.
NotAFold
A fn that is not a fold (state, ev).
NoHandler(String)
No handler of that name.
Run
The fold failed, or returned no map: why.
Trait Implementations§
impl StructuralPartialEq for FoldError
Auto Trait Implementations§
impl Forget for FoldError
impl Freeze for FoldError
impl Move for FoldError
impl RefUnwindSafe for FoldError
impl Send for FoldError
impl Sync for FoldError
impl Unpin for FoldError
impl UnsafeUnpin for FoldError
impl UnwindSafe for FoldError
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<T> Variant for T
impl<T> Variant for T
Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert this
Variant trait object to &mut dyn Any.Source§fn as_boxed_any(self: Box<T>) -> Box<dyn Any>
fn as_boxed_any(self: Box<T>) -> Box<dyn Any>
Convert this
Variant trait object to Box<dyn Any>.