Contents

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 : ~Escapable

Parameters

  • owner:

    The owning instance that this Ref instance’s lifetime is based on.