rust/library
Jan Riemer a876b3d8aa
docs(marker/copy): provide example for &T being Copy
In the current documentation about the `Copy` marker trait, there is a section
with examples of structs that can implement `Copy`. Currently there is no example for
showing that shared references (`&T`) are also `Copy`.
It is worth to have a dedicated example for `&T` being `Copy`, because shared
references are an integral part of the language and it being `Copy` is not as
intuitive as other types that share this behaviour like `i32` or `bool`.

The example picks up on the previous non-`Copy` struct and shows that
structs can be `Copy`, even when they hold a shared reference to a non-`Copy` type.
2020-08-16 20:03:34 +02:00
..
alloc Auto merge of #75033 - Manishearth:rollup-d8afil1, r=Manishearth 2020-08-02 01:04:54 +00:00
backtrace@4083a90168 std: Switch from libbacktrace to gimli 2020-07-28 16:34:01 -07:00
core docs(marker/copy): provide example for &T being Copy 2020-08-16 20:03:34 +02:00
panic_abort mv std libs to library/ 2020-07-27 19:51:13 -05:00
panic_unwind mv std libs to library/ 2020-07-27 19:51:13 -05:00
proc_macro mv std libs to library/ 2020-07-27 19:51:13 -05:00
profiler_builtins mv std libs to library/ 2020-07-27 19:51:13 -05:00
rtstartup mv std libs to library/ 2020-07-27 19:51:13 -05:00
rustc-std-workspace-alloc mv std libs to library/ 2020-07-27 19:51:13 -05:00
rustc-std-workspace-core mv std libs to library/ 2020-07-27 19:51:13 -05:00
rustc-std-workspace-std mv std libs to library/ 2020-07-27 19:51:13 -05:00
std Fix std::fs::File::metadata permission on WASI target 2020-07-31 09:01:16 +00:00
stdarch@311d56cd91 Update stdarch submodule 2020-07-28 09:41:09 -07:00
term mv std libs to library/ 2020-07-27 19:51:13 -05:00
test mv std libs to library/ 2020-07-27 19:51:13 -05:00
unwind mv std libs to library/ 2020-07-27 19:51:13 -05:00