Switch to intra-doc links in library/std/src/os/*/fs.rs
This commit is contained in:
@@ -8,7 +8,7 @@ use crate::os::android::raw;
|
|||||||
|
|
||||||
/// OS-specific extensions to [`fs::Metadata`].
|
/// OS-specific extensions to [`fs::Metadata`].
|
||||||
///
|
///
|
||||||
/// [`fs::Metadata`]: ../../../../std/fs/struct.Metadata.html
|
/// [`fs::Metadata`]: crate::fs::Metadata
|
||||||
#[stable(feature = "metadata_ext", since = "1.1.0")]
|
#[stable(feature = "metadata_ext", since = "1.1.0")]
|
||||||
pub trait MetadataExt {
|
pub trait MetadataExt {
|
||||||
/// Gain a reference to the underlying `stat` structure which contains
|
/// Gain a reference to the underlying `stat` structure which contains
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ use crate::os::dragonfly::raw;
|
|||||||
|
|
||||||
/// OS-specific extensions to [`fs::Metadata`].
|
/// OS-specific extensions to [`fs::Metadata`].
|
||||||
///
|
///
|
||||||
/// [`fs::Metadata`]: ../../../../std/fs/struct.Metadata.html
|
/// [`fs::Metadata`]: crate::fs::Metadata
|
||||||
#[stable(feature = "metadata_ext", since = "1.1.0")]
|
#[stable(feature = "metadata_ext", since = "1.1.0")]
|
||||||
pub trait MetadataExt {
|
pub trait MetadataExt {
|
||||||
/// Gain a reference to the underlying `stat` structure which contains
|
/// Gain a reference to the underlying `stat` structure which contains
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ use crate::os::emscripten::raw;
|
|||||||
|
|
||||||
/// OS-specific extensions to [`fs::Metadata`].
|
/// OS-specific extensions to [`fs::Metadata`].
|
||||||
///
|
///
|
||||||
/// [`fs::Metadata`]: ../../../../std/fs/struct.Metadata.html
|
/// [`fs::Metadata`]: crate::fs::Metadata
|
||||||
#[stable(feature = "metadata_ext", since = "1.1.0")]
|
#[stable(feature = "metadata_ext", since = "1.1.0")]
|
||||||
pub trait MetadataExt {
|
pub trait MetadataExt {
|
||||||
/// Gain a reference to the underlying `stat` structure which contains
|
/// Gain a reference to the underlying `stat` structure which contains
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ use crate::os::freebsd::raw;
|
|||||||
|
|
||||||
/// OS-specific extensions to [`fs::Metadata`].
|
/// OS-specific extensions to [`fs::Metadata`].
|
||||||
///
|
///
|
||||||
/// [`fs::Metadata`]: ../../../../std/fs/struct.Metadata.html
|
/// [`fs::Metadata`]: crate::fs::Metadata
|
||||||
#[stable(feature = "metadata_ext", since = "1.1.0")]
|
#[stable(feature = "metadata_ext", since = "1.1.0")]
|
||||||
pub trait MetadataExt {
|
pub trait MetadataExt {
|
||||||
/// Gain a reference to the underlying `stat` structure which contains
|
/// Gain a reference to the underlying `stat` structure which contains
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ use crate::sys_common::AsInner;
|
|||||||
|
|
||||||
/// OS-specific extensions to [`fs::Metadata`].
|
/// OS-specific extensions to [`fs::Metadata`].
|
||||||
///
|
///
|
||||||
/// [`fs::Metadata`]: ../../../../std/fs/struct.Metadata.html
|
/// [`fs::Metadata`]: crate::fs::Metadata
|
||||||
#[stable(feature = "metadata_ext", since = "1.1.0")]
|
#[stable(feature = "metadata_ext", since = "1.1.0")]
|
||||||
pub trait MetadataExt {
|
pub trait MetadataExt {
|
||||||
#[stable(feature = "metadata_ext2", since = "1.8.0")]
|
#[stable(feature = "metadata_ext2", since = "1.8.0")]
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ use crate::os::haiku::raw;
|
|||||||
|
|
||||||
/// OS-specific extensions to [`fs::Metadata`].
|
/// OS-specific extensions to [`fs::Metadata`].
|
||||||
///
|
///
|
||||||
/// [`fs::Metadata`]: ../../../../std/fs/struct.Metadata.html
|
/// [`fs::Metadata`]: crate::fs::Metadata
|
||||||
#[stable(feature = "metadata_ext", since = "1.1.0")]
|
#[stable(feature = "metadata_ext", since = "1.1.0")]
|
||||||
pub trait MetadataExt {
|
pub trait MetadataExt {
|
||||||
/// Gain a reference to the underlying `stat` structure which contains
|
/// Gain a reference to the underlying `stat` structure which contains
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ use crate::os::illumos::raw;
|
|||||||
|
|
||||||
/// OS-specific extensions to [`fs::Metadata`].
|
/// OS-specific extensions to [`fs::Metadata`].
|
||||||
///
|
///
|
||||||
/// [`fs::Metadata`]: ../../../../std/fs/struct.Metadata.html
|
/// [`fs::Metadata`]: crate::fs::Metadata
|
||||||
#[stable(feature = "metadata_ext", since = "1.1.0")]
|
#[stable(feature = "metadata_ext", since = "1.1.0")]
|
||||||
pub trait MetadataExt {
|
pub trait MetadataExt {
|
||||||
/// Gain a reference to the underlying `stat` structure which contains
|
/// Gain a reference to the underlying `stat` structure which contains
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ use crate::os::ios::raw;
|
|||||||
|
|
||||||
/// OS-specific extensions to [`fs::Metadata`].
|
/// OS-specific extensions to [`fs::Metadata`].
|
||||||
///
|
///
|
||||||
/// [`fs::Metadata`]: ../../../../std/fs/struct.Metadata.html
|
/// [`fs::Metadata`]: crate::fs::Metadata
|
||||||
#[stable(feature = "metadata_ext", since = "1.1.0")]
|
#[stable(feature = "metadata_ext", since = "1.1.0")]
|
||||||
pub trait MetadataExt {
|
pub trait MetadataExt {
|
||||||
/// Gain a reference to the underlying `stat` structure which contains
|
/// Gain a reference to the underlying `stat` structure which contains
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ use crate::os::linux::raw;
|
|||||||
|
|
||||||
/// OS-specific extensions to [`fs::Metadata`].
|
/// OS-specific extensions to [`fs::Metadata`].
|
||||||
///
|
///
|
||||||
/// [`fs::Metadata`]: ../../../../std/fs/struct.Metadata.html
|
/// [`fs::Metadata`]: crate::fs::Metadata
|
||||||
#[stable(feature = "metadata_ext", since = "1.1.0")]
|
#[stable(feature = "metadata_ext", since = "1.1.0")]
|
||||||
pub trait MetadataExt {
|
pub trait MetadataExt {
|
||||||
/// Gain a reference to the underlying `stat` structure which contains
|
/// Gain a reference to the underlying `stat` structure which contains
|
||||||
@@ -18,7 +18,7 @@ pub trait MetadataExt {
|
|||||||
/// Unix platforms. The `os::unix::fs::MetadataExt` trait contains the
|
/// Unix platforms. The `os::unix::fs::MetadataExt` trait contains the
|
||||||
/// cross-Unix abstractions contained within the raw stat.
|
/// cross-Unix abstractions contained within the raw stat.
|
||||||
///
|
///
|
||||||
/// [`stat`]: ../../../../std/os/linux/raw/struct.stat.html
|
/// [`stat`]: crate::os::linux::raw::stat
|
||||||
///
|
///
|
||||||
/// # Examples
|
/// # Examples
|
||||||
///
|
///
|
||||||
@@ -196,7 +196,7 @@ pub trait MetadataExt {
|
|||||||
fn st_atime(&self) -> i64;
|
fn st_atime(&self) -> i64;
|
||||||
/// Returns the last access time of the file, in nanoseconds since [`st_atime`].
|
/// Returns the last access time of the file, in nanoseconds since [`st_atime`].
|
||||||
///
|
///
|
||||||
/// [`st_atime`]: #tymethod.st_atime
|
/// [`st_atime`]: Metadata::st_atime
|
||||||
///
|
///
|
||||||
/// # Examples
|
/// # Examples
|
||||||
///
|
///
|
||||||
@@ -232,7 +232,7 @@ pub trait MetadataExt {
|
|||||||
fn st_mtime(&self) -> i64;
|
fn st_mtime(&self) -> i64;
|
||||||
/// Returns the last modification time of the file, in nanoseconds since [`st_mtime`].
|
/// Returns the last modification time of the file, in nanoseconds since [`st_mtime`].
|
||||||
///
|
///
|
||||||
/// [`st_mtime`]: #tymethod.st_mtime
|
/// [`st_mtime`]: Metadata::st_mtime
|
||||||
///
|
///
|
||||||
/// # Examples
|
/// # Examples
|
||||||
///
|
///
|
||||||
@@ -268,7 +268,7 @@ pub trait MetadataExt {
|
|||||||
fn st_ctime(&self) -> i64;
|
fn st_ctime(&self) -> i64;
|
||||||
/// Returns the last status change time of the file, in nanoseconds since [`st_ctime`].
|
/// Returns the last status change time of the file, in nanoseconds since [`st_ctime`].
|
||||||
///
|
///
|
||||||
/// [`st_ctime`]: #tymethod.st_ctime
|
/// [`st_ctime`]: Metadata::st_ctime
|
||||||
///
|
///
|
||||||
/// # Examples
|
/// # Examples
|
||||||
///
|
///
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ use crate::os::macos::raw;
|
|||||||
|
|
||||||
/// OS-specific extensions to [`fs::Metadata`].
|
/// OS-specific extensions to [`fs::Metadata`].
|
||||||
///
|
///
|
||||||
/// [`fs::Metadata`]: ../../../../std/fs/struct.Metadata.html
|
/// [`fs::Metadata`]: crate::fs::Metadata
|
||||||
#[stable(feature = "metadata_ext", since = "1.1.0")]
|
#[stable(feature = "metadata_ext", since = "1.1.0")]
|
||||||
pub trait MetadataExt {
|
pub trait MetadataExt {
|
||||||
/// Gain a reference to the underlying `stat` structure which contains
|
/// Gain a reference to the underlying `stat` structure which contains
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ use crate::os::netbsd::raw;
|
|||||||
|
|
||||||
/// OS-specific extensions to [`fs::Metadata`].
|
/// OS-specific extensions to [`fs::Metadata`].
|
||||||
///
|
///
|
||||||
/// [`fs::Metadata`]: ../../../../std/fs/struct.Metadata.html
|
/// [`fs::Metadata`]: crate::fs::Metadata
|
||||||
#[stable(feature = "metadata_ext", since = "1.1.0")]
|
#[stable(feature = "metadata_ext", since = "1.1.0")]
|
||||||
pub trait MetadataExt {
|
pub trait MetadataExt {
|
||||||
/// Gain a reference to the underlying `stat` structure which contains
|
/// Gain a reference to the underlying `stat` structure which contains
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ use crate::os::openbsd::raw;
|
|||||||
|
|
||||||
/// OS-specific extensions to [`fs::Metadata`].
|
/// OS-specific extensions to [`fs::Metadata`].
|
||||||
///
|
///
|
||||||
/// [`fs::Metadata`]: ../../../../std/fs/struct.Metadata.html
|
/// [`fs::Metadata`]: crate::fs::Metadata
|
||||||
#[stable(feature = "metadata_ext", since = "1.1.0")]
|
#[stable(feature = "metadata_ext", since = "1.1.0")]
|
||||||
pub trait MetadataExt {
|
pub trait MetadataExt {
|
||||||
/// Gain a reference to the underlying `stat` structure which contains
|
/// Gain a reference to the underlying `stat` structure which contains
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ use crate::os::redox::raw;
|
|||||||
|
|
||||||
/// OS-specific extensions to [`fs::Metadata`].
|
/// OS-specific extensions to [`fs::Metadata`].
|
||||||
///
|
///
|
||||||
/// [`fs::Metadata`]: ../../../../std/fs/struct.Metadata.html
|
/// [`fs::Metadata`]: crate::fs::Metadata
|
||||||
#[stable(feature = "metadata_ext", since = "1.1.0")]
|
#[stable(feature = "metadata_ext", since = "1.1.0")]
|
||||||
pub trait MetadataExt {
|
pub trait MetadataExt {
|
||||||
/// Gain a reference to the underlying `stat` structure which contains
|
/// Gain a reference to the underlying `stat` structure which contains
|
||||||
@@ -18,7 +18,7 @@ pub trait MetadataExt {
|
|||||||
/// Unix platforms. The `os::unix::fs::MetadataExt` trait contains the
|
/// Unix platforms. The `os::unix::fs::MetadataExt` trait contains the
|
||||||
/// cross-Unix abstractions contained within the raw stat.
|
/// cross-Unix abstractions contained within the raw stat.
|
||||||
///
|
///
|
||||||
/// [`stat`]: ../../../../std/os/redox/raw/struct.stat.html
|
/// [`stat`]: crate::os::redox::raw::stat
|
||||||
///
|
///
|
||||||
/// # Examples
|
/// # Examples
|
||||||
///
|
///
|
||||||
@@ -200,7 +200,7 @@ pub trait MetadataExt {
|
|||||||
fn st_atime(&self) -> i64;
|
fn st_atime(&self) -> i64;
|
||||||
/// Returns the last access time of the file, in nanoseconds since [`st_atime`].
|
/// Returns the last access time of the file, in nanoseconds since [`st_atime`].
|
||||||
///
|
///
|
||||||
/// [`st_atime`]: #tymethod.st_atime
|
/// [`st_atime`]: Metadata::st_atime
|
||||||
///
|
///
|
||||||
/// # Examples
|
/// # Examples
|
||||||
///
|
///
|
||||||
@@ -236,7 +236,7 @@ pub trait MetadataExt {
|
|||||||
fn st_mtime(&self) -> i64;
|
fn st_mtime(&self) -> i64;
|
||||||
/// Returns the last modification time of the file, in nanoseconds since [`st_mtime`].
|
/// Returns the last modification time of the file, in nanoseconds since [`st_mtime`].
|
||||||
///
|
///
|
||||||
/// [`st_mtime`]: #tymethod.st_mtime
|
/// [`st_mtime`]: Metadata::st_mtime
|
||||||
///
|
///
|
||||||
/// # Examples
|
/// # Examples
|
||||||
///
|
///
|
||||||
@@ -272,7 +272,7 @@ pub trait MetadataExt {
|
|||||||
fn st_ctime(&self) -> i64;
|
fn st_ctime(&self) -> i64;
|
||||||
/// Returns the last status change time of the file, in nanoseconds since [`st_ctime`].
|
/// Returns the last status change time of the file, in nanoseconds since [`st_ctime`].
|
||||||
///
|
///
|
||||||
/// [`st_ctime`]: #tymethod.st_ctime
|
/// [`st_ctime`]: Metadata::st_ctime
|
||||||
///
|
///
|
||||||
/// # Examples
|
/// # Examples
|
||||||
///
|
///
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ use crate::os::solaris::raw;
|
|||||||
|
|
||||||
/// OS-specific extensions to [`fs::Metadata`].
|
/// OS-specific extensions to [`fs::Metadata`].
|
||||||
///
|
///
|
||||||
/// [`fs::Metadata`]: ../../../../std/fs/struct.Metadata.html
|
/// [`fs::Metadata`]: crate::fs::Metadata
|
||||||
#[stable(feature = "metadata_ext", since = "1.1.0")]
|
#[stable(feature = "metadata_ext", since = "1.1.0")]
|
||||||
pub trait MetadataExt {
|
pub trait MetadataExt {
|
||||||
/// Gain a reference to the underlying `stat` structure which contains
|
/// Gain a reference to the underlying `stat` structure which contains
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ use crate::fs::Metadata;
|
|||||||
use crate::sys_common::AsInner;
|
use crate::sys_common::AsInner;
|
||||||
|
|
||||||
///
|
///
|
||||||
/// [`fs::Metadata`]: ../../../../std/fs/struct.Metadata.html
|
/// [`fs::Metadata`]: crate::fs::Metadata
|
||||||
#[stable(feature = "metadata_ext", since = "1.1.0")]
|
#[stable(feature = "metadata_ext", since = "1.1.0")]
|
||||||
pub trait MetadataExt {
|
pub trait MetadataExt {
|
||||||
#[stable(feature = "metadata_ext2", since = "1.8.0")]
|
#[stable(feature = "metadata_ext2", since = "1.8.0")]
|
||||||
|
|||||||
Reference in New Issue
Block a user