rusty_qjs 0.0.1

Rust bindings to QuickJS
Documentation
1
2
3
4
5
6
7
8
9
10
11
use crate::JSContext;

/// JSValue is using reference counting, so it is important
/// to explicitly duplicate or free JSValues.
pub trait QuickjsRc {
  /// Decrement the reference count.
  fn free(&mut self, ctx: &mut JSContext);

  /// Increment the reference count.
  fn dup(&self, ctx: &mut JSContext) -> Self;
}