Function

with_mutable_contiguous_storage(_:)

Calls action with a pointer to the start of the array's mutable contiguous storage.

Source
fun with_mutable_contiguous_storage<E, T: Movable>(_ action: inout [E] (PointerToMutable<Element>) inout -> T) -> T { inout }

Details

The projected pointer is valid only for the duration of the projection and can be advanced up to count(). It may be null if self is empty.