rust/library/std/src
León Orell Valerian Liehr b24d2ad300
Rollup merge of #123756 - lukas-code:file-sync, r=jhpratt
clean up docs for `File::sync_*`

* Clarify that `sync_all` also writes data and not just metadata.
* Clarify that dropping a file is not equivalent to calling `sync_all` and ignoring the result. `sync_all` the still the recommended way to detect errors before closing, because we don't have a dedicated method for that.
* Add a link from `sync_all` to `sync_data`, because that's what the user might want to use instead.
* Add doc aliases for `fsync` -> `sync_all` and `fdatasync` -> `sync_data`. Those are the POSIX standard names for these functions. I was trying to find out what we call `fsync` in Rust and had to search through the source code to find it, so this alias should help with that in the future.
2024-04-11 01:56:26 +02:00
..
backtrace
collections Add "put" as a confusable for insert on hash map/set 2024-03-19 14:28:01 -04:00
env
error
f16 Add basic f16 and f128 modules 2024-04-10 13:50:27 -04:00
f32
f64
f128 Add basic f16 and f128 modules 2024-04-10 13:50:27 -04:00
ffi Rollup merge of #112136 - clarfonthey:ffi-c_str, r=cuviper 2024-03-10 10:58:14 +01:00
fs Support for visionOS 2024-03-18 20:45:45 -07:00
hash
io Auto merge of #122393 - a1phyr:specialize_read_buf_exact, r=joboet 2024-04-10 11:38:15 +00:00
net SeqCst->Relaxed in std::net::test. 2024-03-20 15:35:13 +01:00
num
os Document Windows argument splitting 2024-04-09 01:19:33 +02:00
panic
path
prelude Remove RustcEncodable/Decodable from 2024 prelude 2024-03-22 13:30:48 -07:00
process
sync Rollup merge of #114788 - tisonkun:get_mut_or_init, r=dtolnay 2024-04-06 13:00:04 +02:00
sys Rollup merge of #123534 - ChrisDenton:name, r=workingjubilee 2024-04-10 16:15:23 +02:00
sys_common sys_common::thread_local_key: make a note that this is not used on Windows 2024-04-07 12:23:47 +02:00
thread Auto merge of #123433 - GnomedDev:remove-threadname-alloc, r=joboet 2024-04-06 00:17:23 +00:00
time
alloc.rs SeqCst->{Release,Acquire} for alloc error hook. 2024-03-19 15:27:11 +01:00
ascii.rs
backtrace.rs
env.rs Remove doc aliases to PATH 2024-02-29 14:28:47 -05:00
error.rs
f16.rs Add basic f16 and f128 modules 2024-04-10 13:50:27 -04:00
f32.rs Use the guaranteed precision of a couple of float functions in docs 2024-03-01 18:57:42 +01:00
f64.rs Use the guaranteed precision of a couple of float functions in docs 2024-03-01 18:57:42 +01:00
f128.rs Add basic f16 and f128 modules 2024-04-10 13:50:27 -04:00
fs.rs clean up docs for File::sync_* 2024-04-10 23:02:12 +02:00
keyword_docs.rs Mention labelled blocks in break docs 2024-03-15 10:51:57 -07:00
lib.miri.rs add 'x.py miri', and make it work for 'library/{core,alloc,std}' 2024-04-03 20:27:20 +02:00
lib.rs Rollup merge of #123360 - adamgemmell:dev/adagem01/restricted-std, r=ehuss 2024-04-11 01:56:25 +02:00
macros.rs
num.rs
panic.rs catch_panic: warn about panicking payload drop 2024-03-31 11:54:16 +02:00
panicking.rs std: move thread::current TLS variable out of thread_info 2024-03-31 11:28:24 +02:00
pat.rs Add pattern types to parser 2024-04-08 11:57:17 +00:00
path.rs Rollup merge of #120051 - riverbl:os-str-display, r=m-ou-se 2024-02-28 16:04:49 +01:00
process.rs Document Windows argument splitting 2024-04-09 01:19:33 +02:00
rt.rs Remove rt::init allocation for thread name 2024-04-04 23:17:15 +01:00
time.rs Rust is a proper name: rust → Rust 2024-03-07 07:49:22 +01:00