File tree 1 file changed +7
-0
lines changed
1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change 3
3
//! For more information on foreign functions, see Apple's documentation:
4
4
//! <https://developer.apple.com/library/mac/documentation/Cocoa/Reference/ObjCRuntimeRef/index.html>
5
5
6
+ #[ cfg( doc) ]
7
+ use core:: cell:: UnsafeCell ;
6
8
use core:: fmt;
7
9
use core:: hash;
8
10
use core:: panic:: { RefUnwindSafe , UnwindSafe } ;
@@ -593,6 +595,11 @@ fn ivar_offset<T: Encode>(cls: &Class, name: &str) -> isize {
593
595
///
594
596
/// `Id<Object, _>` is equivalent to Objective-C's `id`.
595
597
///
598
+ /// This contains [`UnsafeCell`], and is similar to that in that one can
599
+ /// safely access and perform interior mutability on this (both via.
600
+ /// [`msg_send!`] and through ivars), so long as Rust's mutability rules are
601
+ /// upheld, and that data races are avoided.
602
+ ///
596
603
/// Note: This is intentionally neither [`Sync`], [`Send`], [`UnwindSafe`],
597
604
/// [`RefUnwindSafe`] nor [`Unpin`], since that is something that may change
598
605
/// depending on the specific subclass. For example, `NSAutoreleasePool` is
You can’t perform that action at this time.
0 commit comments