This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /// MARK CoW implementation | |
| @propertyWrapper | |
| public struct CoW<T> { | |
| private final class Ref { | |
| var val: T | |
| init(_ v: T) { val = v } | |
| } | |
| private var ref: Ref |