Expand description
默认 不带 任何 feature
§1. 几个类型封装
Share=Xrc|ArcShareWeak=xrc::Weak|sync::WeakShareMutex=LockCell(RefCell<T>)| MutexShareRwLock=LockCell(RefCell<T>)|RwLockShareCell=cell::TrustCellSharePtr=SyncUnsafeCell<T>|AtomicPtr<T>ShareRefCell=XrcCell<T>|ArcCell<T>ShareBool=SyncUnsafeCell<bool>|AtomicBoolShareU8=SyncUnsafeCell<u8>|AtomicU8ShareU32=SyncUnsafeCell<u32>|AtomicU32ShareUsize=SyncUnsafeCell<usize>|AtomicUsize
§2. 提供 Send, Sync 的 封装
目的:wasm 不支持 Send + Sync
- ThreadSend = Send
- ThreadSync = Sync + Send
Re-exports§
Modules§
- arc_
cell - atomic
- cell
- Helper module for some internals, most users don’t need to interact with it.
- lock
- xrc
- Thread-safe reference-counting pointers.
- xrc_
cell