rust/library/std/src/io
bors 3d31363338 Auto merge of #85176 - a1phyr:impl_clone_from, r=yaahc
Override `clone_from` for some types

Override `clone_from` method of the `Clone` trait for:
- `cell::RefCell`
- `cmp::Reverse`
- `io::Cursor`
- `mem::ManuallyDrop`

This can bring performance improvements.
2021-05-19 02:17:41 +00:00
..
buffered BufWriter: improve safety comment 2021-04-13 21:20:59 -07:00
cursor Make some std::io functions const 2020-11-06 17:48:26 +01:00
error Add test for io::Error::new_const. 2021-03-21 20:22:26 +01:00
impls std: move "mod tests/benches" to separate files 2020-08-31 02:56:59 +00:00
stdio std: move "mod tests/benches" to separate files 2020-08-31 02:56:59 +00:00
util specialize io::copy to use the memory of the writer if it is a BufWriter 2021-01-31 14:58:03 +01:00
copy.rs library: Normalize safety-for-unsafe-block comments 2021-02-24 06:13:42 +01:00
cursor.rs Override clone_from for some types 2021-05-11 13:00:34 +02:00
error.rs Correct stability of ErrorKind::OutOfMemory 2021-05-03 10:28:19 +01:00
impls.rs Use io::Error::new_const everywhere to avoid allocations. 2021-03-21 20:22:38 +01:00
mod.rs fix typo 2021-05-18 17:05:40 +01:00
prelude.rs Use heading for std::prelude and not io::prelude 2021-01-05 17:52:24 -08:00
stdio.rs Rework at_exit to cleanup 2021-04-22 10:34:48 +02:00
tests.rs Use io::Error::new_const everywhere to avoid allocations. 2021-03-21 20:22:38 +01:00
util.rs Replace all fmt.pad with debug_struct 2021-04-21 14:38:24 +02:00