fcd76b4d3c
Make Arc cloning mechanics clearer in module docs Add some more wording to module documentation regarding how `Arc::clone()` works, as some users have assumed cloning Arc's to work via dereferencing to inner value as follows: use std::sync::Arc; let myarc = Arc::new(1); let myarcref = myarc.clone(); assert!(1 == myarcref); Instead of the actual mechanic of referencing the existing Arc value: use std::sync::Arg; let myarc = Arc::new(1); let myarcref = myarc.clone(); assert!(myarcref == &myarc); // not sure if assert could assert this in the real world |
||
---|---|---|
.. | ||
benches | ||
collections | ||
tests | ||
alloc.rs | ||
borrow.rs | ||
boxed_test.rs | ||
boxed.rs | ||
Cargo.toml | ||
fmt.rs | ||
lib.rs | ||
macros.rs | ||
pin.rs | ||
prelude.rs | ||
raw_vec.rs | ||
rc.rs | ||
slice.rs | ||
str.rs | ||
string.rs | ||
sync.rs | ||
task.rs | ||
vec.rs |