pub fn new(data: T) -> Self {
      let mem = GcMem::allocate(data, drop_finalizer::<T>);
      unsafe {
         let mem = mem.get_mem();
         mem.managed_by_gc.set(false);
         mem.rc.set(1);
      }
      Self { mem }
   }
/// Creates a new `Gc` that is not managed by a garbage collector.
Creates a new `Gc` that is not managed by a garbage collector.
Creates a new ` Gc ` that is not managed by a garbage collector .
pub fn new(data: T) -> Self {
      let mem = GcMem::allocate(data, drop_finalizer::<T>);
      unsafe {
         let mem = mem.get_mem();
         mem.managed_by_gc.set(false);
         mem.rc.set(1);
      }
      Self { mem }
   }
pub fn new ( data : T ) -> Self { let mem = GcMem :: allocate ( data , drop_finalizer :: < T > ) ; unsafe { let mem = mem . get_mem ( ) ; mem . managed_by_gc . set ( false ) ; mem . rc . set ( 1 ) ; } Self { mem } }
Creates a new `Gc` that is not managed by a garbage collector.
Creates a new ` Gc ` that is not managed by a garbage collector .
data
T