Function zerogc::dummy_impl::leaked [−][src]
pub fn leaked<'gc, T: GcSafe + 'static>(value: T) -> Gc<'gc, T>
Allocate a (fake) Gc that points to the specified value and leak it.
Since collection is unimplemented, this intentionally leaks memory.