A interior-mutability types that enforce runtime borrow checking in debug builds or when full_safety is enabled, otherwise the caller is reponsible for upholding Rust's aliasing rules.
Variants:
SemiSafeCell<T>: single-threaded (usesRefCellfor runtime borrow checking).SyncSemiSafeCell<T>: thread-safe (usesatomic_refcell::AtomicRefCellfor runtime borrow checking).
Features:
full_safety: enables runtime borrow checks in release too.coerce_unsized: nightly-only; allowsCoerceUnsizedcoercions.