diff options
| author | xizheyin <xizheyin@smail.nju.edu.cn> | 2025-06-04 01:39:02 +0800 |
|---|---|---|
| committer | xizheyin <xizheyin@smail.nju.edu.cn> | 2025-06-04 01:39:02 +0800 |
| commit | 871397342c9da1cdcee3c851a2c93b84aa512fba (patch) | |
| tree | 9ea7949e9fb3a628bef3fed7d9ae0facd8645ee5 /tests/codegen-llvm/src-hash-algorithm/src-hash-algorithm-sha1.rs | |
| parent | 91fad92585b2dafc52a074e502b2a6c1f093ca35 (diff) | |
| download | rust-871397342c9da1cdcee3c851a2c93b84aa512fba.tar.gz rust-871397342c9da1cdcee3c851a2c93b84aa512fba.zip | |
std: simplify `NonNull` variance documentation
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>
Diffstat (limited to 'tests/codegen-llvm/src-hash-algorithm/src-hash-algorithm-sha1.rs')
0 files changed, 0 insertions, 0 deletions
