@@ -9,7 +9,7 @@ use crate::sys_common::{AsInner, AsInnerMut, FromInner};
9
9
10
10
/// Unix-specific extensions to [`File`].
11
11
///
12
- /// [`File`]: ../../../../std/fs/struct. File.html
12
+ /// [`File`]: crate::fs:: File
13
13
#[ stable( feature = "file_offset" , since = "1.15.0" ) ]
14
14
pub trait FileExt {
15
15
/// Reads a number of bytes starting from a given offset.
@@ -24,7 +24,7 @@ pub trait FileExt {
24
24
/// Note that similar to [`File::read`], it is not an error to return with a
25
25
/// short read.
26
26
///
27
- /// [`File::read`]: ../../../../std/fs/struct. File.html#method. read
27
+ /// [`File::read`]: crate::fs:: File:: read
28
28
///
29
29
/// # Examples
30
30
///
@@ -55,8 +55,8 @@ pub trait FileExt {
55
55
///
56
56
/// Similar to [`Read::read_exact`] but uses [`read_at`] instead of `read`.
57
57
///
58
- /// [`Read::read_exact`]: ../../../../std/io/trait. Read.html#method. read_exact
59
- /// [`read_at`]: #tymethod. read_at
58
+ /// [`Read::read_exact`]: crate::io:: Read:: read_exact
59
+ /// [`read_at`]: FileExt:: read_at
60
60
///
61
61
/// # Errors
62
62
///
@@ -75,8 +75,8 @@ pub trait FileExt {
75
75
/// has read, but it will never read more than would be necessary to
76
76
/// completely fill the buffer.
77
77
///
78
- /// [`ErrorKind::Interrupted`]: ../../../../std/io/enum. ErrorKind.html#variant. Interrupted
79
- /// [`ErrorKind::UnexpectedEof`]: ../../../../std/io/enum. ErrorKind.html#variant. UnexpectedEof
78
+ /// [`ErrorKind::Interrupted`]: crate::io:: ErrorKind:: Interrupted
79
+ /// [`ErrorKind::UnexpectedEof`]: crate::io:: ErrorKind:: UnexpectedEof
80
80
///
81
81
/// # Examples
82
82
///
@@ -132,7 +132,7 @@ pub trait FileExt {
132
132
/// Note that similar to [`File::write`], it is not an error to return a
133
133
/// short write.
134
134
///
135
- /// [`File::write`]: ../../../../std/fs/struct. File.html#method. write
135
+ /// [`File::write`]: crate::fs:: File:: write
136
136
///
137
137
/// # Examples
138
138
///
@@ -171,8 +171,8 @@ pub trait FileExt {
171
171
/// This function will return the first error of
172
172
/// non-[`ErrorKind::Interrupted`] kind that [`write_at`] returns.
173
173
///
174
- /// [`ErrorKind::Interrupted`]: ../../../../std/io/enum. ErrorKind.html#variant. Interrupted
175
- /// [`write_at`]: #tymethod. write_at
174
+ /// [`ErrorKind::Interrupted`]: crate::io:: ErrorKind:: Interrupted
175
+ /// [`write_at`]: FileExt:: write_at
176
176
///
177
177
/// # Examples
178
178
///
@@ -224,7 +224,7 @@ impl FileExt for fs::File {
224
224
225
225
/// Unix-specific extensions to [`fs::Permissions`].
226
226
///
227
- /// [`fs::Permissions`]: ../../../../std/fs/struct. Permissions.html
227
+ /// [`fs::Permissions`]: crate::fs:: Permissions
228
228
#[ stable( feature = "fs_ext" , since = "1.1.0" ) ]
229
229
pub trait PermissionsExt {
230
230
/// Returns the underlying raw `st_mode` bits that contain the standard
@@ -301,7 +301,7 @@ impl PermissionsExt for Permissions {
301
301
302
302
/// Unix-specific extensions to [`fs::OpenOptions`].
303
303
///
304
- /// [`fs::OpenOptions`]: ../../../../std/fs/struct. OpenOptions.html
304
+ /// [`fs::OpenOptions`]: crate::fs:: OpenOptions
305
305
#[ stable( feature = "fs_ext" , since = "1.1.0" ) ]
306
306
pub trait OpenOptionsExt {
307
307
/// Sets the mode bits that a new file will be created with.
@@ -370,7 +370,7 @@ impl OpenOptionsExt for OpenOptions {
370
370
371
371
/// Unix-specific extensions to [`fs::Metadata`].
372
372
///
373
- /// [`fs::Metadata`]: ../../../../std/fs/struct. Metadata.html
373
+ /// [`fs::Metadata`]: crate::fs:: Metadata
374
374
#[ stable( feature = "metadata_ext" , since = "1.1.0" ) ]
375
375
pub trait MetadataExt {
376
376
/// Returns the ID of the device containing the file.
@@ -655,7 +655,7 @@ impl MetadataExt for fs::Metadata {
655
655
/// Adds support for special Unix file types such as block/character devices,
656
656
/// pipes, and sockets.
657
657
///
658
- /// [`FileType`]: ../../../../std/fs/struct. FileType.html
658
+ /// [`FileType`]: crate::fs:: FileType
659
659
#[ stable( feature = "file_type_ext" , since = "1.5.0" ) ]
660
660
pub trait FileTypeExt {
661
661
/// Returns whether this file type is a block device.
@@ -750,7 +750,7 @@ impl FileTypeExt for fs::FileType {
750
750
751
751
/// Unix-specific extension methods for [`fs::DirEntry`].
752
752
///
753
- /// [`fs::DirEntry`]: ../../../../std/fs/struct. DirEntry.html
753
+ /// [`fs::DirEntry`]: crate::fs:: DirEntry
754
754
#[ stable( feature = "dir_entry_ext" , since = "1.1.0" ) ]
755
755
pub trait DirEntryExt {
756
756
/// Returns the underlying `d_ino` field in the contained `dirent`
@@ -812,7 +812,7 @@ pub fn symlink<P: AsRef<Path>, Q: AsRef<Path>>(src: P, dst: Q) -> io::Result<()>
812
812
813
813
/// Unix-specific extensions to [`fs::DirBuilder`].
814
814
///
815
- /// [`fs::DirBuilder`]: ../../../../std/fs/struct. DirBuilder.html
815
+ /// [`fs::DirBuilder`]: crate::fs:: DirBuilder
816
816
#[ stable( feature = "dir_builder" , since = "1.6.0" ) ]
817
817
pub trait DirBuilderExt {
818
818
/// Sets the mode to create new directories with. This option defaults to
0 commit comments