Expand description
The NativeObject trait for opaque Rust structs exposed as Clojure values.
Unlike Resource (which uses Arc for deterministic Drop), native objects
live behind GcPtr and participate in tracing GC. They are intended for
Rust values whose lifetime is managed by the garbage collector.
Structs§
- Native
Object Box - A type-erased wrapper around
Box<dyn NativeObject>.
Traits§
- Native
Object - An opaque Rust value that can be wrapped as a Clojure
Value::NativeObject.
Functions§
- gc_
native_ object - Convenience: allocate a
NativeObjecton the GC heap.