File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 17
17
@frozen // trivial-implementation
18
18
///
19
19
/// `ObjectIdentifier` is only guaranteed to remain unique for the
20
- /// lifetime of an object. If an object has a stronger notion of identity, it
21
- /// may be appropriate to provide a custom implementation.
22
-
20
+ /// lifetime of an object. When the instance gets deallocated, its object
21
+ /// identifier may be reused for a different object. (Internally, objects are
22
+ /// identified by their memory location.)
23
+ /// If you need an object identifier over the lifetime of an objec, it may
24
+ /// be appropriate to provide a custom implementation of `Identifiable`.
23
25
public struct ObjectIdentifier {
24
26
@usableFromInline // trivial-implementation
25
27
internal let _value : Builtin . RawPointer
You can’t perform that action at this time.
0 commit comments