pub enum JSError<'a> {
NonNullTerminatedString,
NotAFunction,
TooManyArgs,
VMError(&'a str),
}
Expand description
Execution error
Variants§
NonNullTerminatedString
String does’t end with \0
NotAFunction
Trying to exectute a Val that’s not a function
TooManyArgs
Too many arguments
VMError(&'a str)
VM execution error
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for JSError<'a>
impl<'a> RefUnwindSafe for JSError<'a>
impl<'a> Send for JSError<'a>
impl<'a> Sync for JSError<'a>
impl<'a> Unpin for JSError<'a>
impl<'a> UnwindSafe for JSError<'a>
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