File tree 16 files changed +60
-15
lines changed
16 files changed +60
-15
lines changed Original file line number Diff line number Diff line change 1
- //! Linux-specific extensions to primitives in the `std::fs` module.
1
+ //! Linux-specific extensions to primitives in the [`std::fs`] module.
2
+ //!
3
+ //! [`std::fs`]: crate::fs
2
4
3
5
#![ stable( feature = "metadata_ext" , since = "1.1.0" ) ]
4
6
Original file line number Diff line number Diff line change 1
- //! Linux-specific extensions to primitives in the `std::process` module.
1
+ //! Linux-specific extensions to primitives in the [`std::process`] module.
2
+ //!
3
+ //! [`std::process`]: crate::process
2
4
3
5
#![ unstable( feature = "linux_pidfd" , issue = "82971" ) ]
4
6
Original file line number Diff line number Diff line change 1
- //! Unix-specific extension to the primitives in the `std::ffi` module.
1
+ //! Unix-specific extensions to primitives in the [ `std::ffi`] module.
2
2
//!
3
3
//! # Examples
4
4
//!
31
31
//! let bytes = os_str.as_bytes();
32
32
//! assert_eq!(bytes, b"foo");
33
33
//! ```
34
+ //!
35
+ //! [`std::ffi`]: crate::ffi
34
36
35
37
#![ stable( feature = "rust1" , since = "1.0.0" ) ]
36
38
Original file line number Diff line number Diff line change 1
- //! Unix-specific extensions to primitives in the `std::fs` module.
1
+ //! Unix-specific extensions to primitives in the [`std::fs`] module.
2
+ //!
3
+ //! [`std::fs`]: crate::fs
2
4
3
5
#![ stable( feature = "rust1" , since = "1.0.0" ) ]
4
6
Original file line number Diff line number Diff line change 4
4
//! exposes Unix-specific functions that would otherwise be inappropriate as
5
5
//! part of the core `std` library.
6
6
//!
7
- //! It exposes more ways to deal with platform-specific strings (`OsStr`,
8
- //! `OsString`), allows to set permissions more granularly, extract low-level
7
+ //! It exposes more ways to deal with platform-specific strings ([ `OsStr`] ,
8
+ //! [ `OsString`] ), allows to set permissions more granularly, extract low-level
9
9
//! file descriptors from files and sockets, and has platform-specific helpers
10
10
//! for spawning processes.
11
11
//!
24
24
//! Ok(())
25
25
//! }
26
26
//! ```
27
+ //!
28
+ //! [`OsStr`]: crate::ffi::OsStr
29
+ //! [`OsString`]: crate::ffi::OsString
27
30
28
31
#![ stable( feature = "rust1" , since = "1.0.0" ) ]
29
32
#![ doc( cfg( unix) ) ]
Original file line number Diff line number Diff line change 1
- //! Unix-specific networking functionality
1
+ //! Unix-specific networking functionality.
2
2
3
3
#![ stable( feature = "unix_socket" , since = "1.10.0" ) ]
4
4
Original file line number Diff line number Diff line change 1
- //! Unix-specific extensions to primitives in the `std::process` module.
1
+ //! Unix-specific extensions to primitives in the [`std::process`] module.
2
+ //!
3
+ //! [`std::process`]: crate::process
2
4
3
5
#![ stable( feature = "rust1" , since = "1.0.0" ) ]
4
6
Original file line number Diff line number Diff line change 1
- //! Unix-specific extensions to primitives in the `std::thread` module.
1
+ //! Unix-specific extensions to primitives in the [`std::thread`] module.
2
+ //!
3
+ //! [`std::thread`]: crate::thread
2
4
3
5
#![ stable( feature = "thread_extensions" , since = "1.9.0" ) ]
4
6
Original file line number Diff line number Diff line change 1
- //! WASI-specific extension to the primitives in the `std::ffi` module
1
+ //! WASI-specific extensions to primitives in the [`std::ffi`] module
2
+ //!
3
+ //! [`std::ffi`]: crate::ffi
2
4
3
5
#![ stable( feature = "rust1" , since = "1.0.0" ) ]
4
6
Original file line number Diff line number Diff line change 1
- //! WASI-specific extensions to primitives in the `std::fs` module.
1
+ //! WASI-specific extensions to primitives in the [`std::fs`] module.
2
+ //!
3
+ //! [`std::fs`]: crate::fs
2
4
3
5
#![ deny( unsafe_op_in_unsafe_fn) ]
4
6
#![ unstable( feature = "wasi_ext" , issue = "71213" ) ]
Original file line number Diff line number Diff line change 24
24
//! Ok(())
25
25
//! }
26
26
//! ```
27
+ //!
28
+ //! [`OsStr`]: crate::ffi::OsStr
29
+ //! [`OsString`]: crate::ffi::OsString
27
30
28
31
#![ stable( feature = "rust1" , since = "1.0.0" ) ]
29
32
#![ deny( unsafe_op_in_unsafe_fn) ]
Original file line number Diff line number Diff line change 1
- //! Windows-specific extensions to the primitives in the `std::ffi` module.
1
+ //! Windows-specific extensions to primitives in the [ `std::ffi`] module.
2
2
//!
3
3
//! # Overview
4
4
//!
49
49
//! [ill-formed-utf-16]: https://simonsapin.github.io/wtf-8/#ill-formed-utf-16
50
50
//! [`collect`]: crate::iter::Iterator::collect
51
51
//! [U+FFFD]: crate::char::REPLACEMENT_CHARACTER
52
+ //! [`std::ffi`]: crate::ffi
52
53
53
54
#![ stable( feature = "rust1" , since = "1.0.0" ) ]
54
55
Original file line number Diff line number Diff line change 1
- //! Windows-specific extensions for the primitives in the `std::fs` module.
1
+ //! Windows-specific extensions to primitives in the [`std::fs`] module.
2
+ //!
3
+ //! [`std::fs`]: crate::fs
2
4
3
5
#![ stable( feature = "rust1" , since = "1.0.0" ) ]
4
6
Original file line number Diff line number Diff line change 5
5
//! the core `std` library. These extensions allow developers to use
6
6
//! `std` types and idioms with Windows in a way that the normal
7
7
//! platform-agnostic idioms would not normally support.
8
+ //!
9
+ //! # Examples
10
+ //!
11
+ //! ```no_run
12
+ //! use std::fs::File;
13
+ //! use std::os::windows::prelude::*;
14
+ //!
15
+ //! fn main() -> std::io::Result<()> {
16
+ //! let f = File::create("foo.txt")?;
17
+ //! let handle = f.as_raw_handle();
18
+ //!
19
+ //! // use handle with native windows bindings
20
+ //!
21
+ //! Ok(())
22
+ //! }
23
+ //! ```
8
24
9
25
#![ stable( feature = "rust1" , since = "1.0.0" ) ]
10
26
#![ doc( cfg( windows) ) ]
Original file line number Diff line number Diff line change 1
- //! Extensions to `std::process` for Windows.
1
+ //! Windows-specific extensions to primitives in the [`std::process`] module.
2
+ //!
3
+ //! [`std::process`]: crate::process
2
4
3
5
#![ stable( feature = "process_extensions" , since = "1.2.0" ) ]
4
6
Original file line number Diff line number Diff line change 1
- //! Extensions to `std::thread` for Windows.
1
+ //! Windows-specific extensions to primitives in the [`std::thread`] module.
2
+ //!
3
+ //! [`std::thread`]: crate::thread
2
4
3
5
#![ stable( feature = "thread_extensions" , since = "1.9.0" ) ]
4
6
You can’t perform that action at this time.
0 commit comments