init(unsafeAddress:mutating:)
Unsafely initializes an instance of MutableRef using the given ‘unsafeAddress’ as the mutable reference based on the mutating lifetime of the given ‘owner’ argument.
Declaration
init<Owner>(unsafeAddress pointer: UnsafeMutablePointer<Value>, mutating owner: inout Owner) where Owner : ~Copyable, Owner : ~EscapableParameters
- owner:
The owning instance that this
MutableRefinstance’s lifetime is based on.