init(unsafeAddress:borrowing:)
Unsafely initializes an instance of Ref using the given ‘unsafeAddress’ as the reference based on the borrowed lifetime of the given ‘owner’ argument.
Declaration
init<Owner>(unsafeAddress pointer: UnsafePointer<Value>, borrowing owner: borrowing Owner) where Owner : ~Copyable, Owner : ~EscapableParameters
- owner:
The owning instance that this
Refinstance’s lifetime is based on.