MCPcopy Index your code
hub / github.com/aiscriptdev/aiscript / new

Method new

aiscript-arena/src/gc.rs:92–97  ·  view source on GitHub ↗
(mc: &Mutation<'gc>, t: T)

Source from the content-addressed store, hash-verified

90impl<'gc, T: Collect + 'gc> Gc<'gc, T> {
91 #[inline]
92 pub fn new(mc: &Mutation<'gc>, t: T) -> Gc<'gc, T> {
93 Gc {
94 ptr: mc.allocate(t),
95 _invariant: PhantomData,
96 }
97 }
98}
99
100impl<'gc, T: 'static> Gc<'gc, T> {

Callers

nothing calls this directly

Calls 1

allocateMethod · 0.45

Tested by

no test coverage detected