MCPcopy Create free account
hub / github.com/aiscriptdev/aiscript / new_in

Method new_in

aiscript-arena/src/allocator_api.rs:44–50  ·  view source on GitHub ↗
(mc: &Mutation<'gc>, allocator: A)

Source from the content-addressed store, hash-verified

42impl<'gc, A> MetricsAlloc<'gc, A> {
43 #[inline]
44 pub fn new_in(mc: &Mutation<'gc>, allocator: A) -> Self {
45 Self {
46 metrics: mc.metrics().clone(),
47 allocator,
48 _marker: PhantomData,
49 }
50 }
51
52 #[inline]
53 pub fn from_metrics_in(metrics: Metrics, allocator: A) -> Self {

Callers

nothing calls this directly

Calls 2

cloneMethod · 0.45
metricsMethod · 0.45

Tested by

no test coverage detected