use crate::mem::{gc::Gc, BasicGc}; pub type DefaultGc = BasicGc; pub struct ObjCtx where G: Gc, { gc: G, } impl ObjCtx where G: Gc, { pub fn new(gc: G) -> Self { ObjCtx { gc } } pub fn gc(&self) -> &G { &self.gc } pub fn gc_mut(&mut self) -> &mut G { &mut self.gc } }