pub const fn gc_array<'gc, T: GcSafe<'gc, EpsilonCollectorId> + 'gc>(
slice: &'gc [T]
) -> GcArray<'gc, T>
Expand description
Coerce a slice into a GcArray
.
This is only supported on the epsilon collector.
Because the epsilon collector never collects,
it doesn’t need to make a distinction between GcArray<T>
and &[T]
.
See also: gc for converting &T
-> Gc<T>