These are chat archives for rust-lang/rust
&, why not just
values of U will automatically coerce to a T.
Uby value, then you'll consume and lose the original
T, without destroying it.
mut, I won't lose it. ..... Oh, you mean if it's
T, then the ownership will be passed to the parameter, that will make me lose the original
T? ....Got it. Then will
&mut U be coerced to &mut T? I think it doesn't against any rule.
Rc, to be specific, I don't get why
Sendexist, it sounds like
Syncis enough. I think that it is enough to say that
Sync. How the compiler knows that it can
Cellto some thread, but disallow multithreading?