Streamlined the explanation of covariance for `NonNull<T>`, focusing on practical usage and reducing scary explanation. Added a concise example for cases where invariance is required, showing how to use `PhantomData<Cell<T>> Signed-off-by: xizheyin <xizheyin@smail.nju.edu.cn> |
||
|---|---|---|
| .. | ||
| docs | ||
| alignment.rs | ||
| const_ptr.rs | ||
| metadata.rs | ||
| mod.rs | ||
| mut_ptr.rs | ||
| non_null.rs | ||
| unique.rs | ||