init(_:)

Initializes an instance of Ref with the given borrowed value. This creates a constant reference to that value preventing writes on the original value while this reference is still active.

Declaration

init(_ value: borrowing Value)