rmquickjs 1.0.0

High-level MicroQuickJS bindings for Rust
1
2
3
4
5
6
7
8
9
use alloc::{boxed::Box, vec::Vec};

use crate::{Context, Result, Value};

#[derive(Default)]
pub struct Opaque {
    pub interrupt_handler: Option<Box<dyn Fn(&Context) -> bool>>,
    pub funcs: Vec<Box<dyn Fn(&Context, Option<Value>, &[Value]) -> Result<Value>>>,
}