mirror of
https://github.com/rust-lang/rust.git
synced 2025-06-04 19:29:07 +00:00
inline linking
This commit is contained in:
parent
f615b6d338
commit
c5849ae3e0
@ -7,9 +7,7 @@ use crate::sys;
|
|||||||
use crate::sys::platform::fs::MetadataExt as UnixMetadataExt;
|
use crate::sys::platform::fs::MetadataExt as UnixMetadataExt;
|
||||||
use crate::sys_common::{AsInner, AsInnerMut, FromInner};
|
use crate::sys_common::{AsInner, AsInnerMut, FromInner};
|
||||||
|
|
||||||
/// Unix-specific extensions to [`File`].
|
/// Unix-specific extensions to [`fs::File`].
|
||||||
///
|
|
||||||
/// [`File`]: fs::File
|
|
||||||
#[stable(feature = "file_offset", since = "1.15.0")]
|
#[stable(feature = "file_offset", since = "1.15.0")]
|
||||||
pub trait FileExt {
|
pub trait FileExt {
|
||||||
/// Reads a number of bytes starting from a given offset.
|
/// Reads a number of bytes starting from a given offset.
|
||||||
@ -644,12 +642,10 @@ impl MetadataExt for fs::Metadata {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Unix-specific extensions for [`FileType`].
|
/// Unix-specific extensions for [`fs::FileType`].
|
||||||
///
|
///
|
||||||
/// Adds support for special Unix file types such as block/character devices,
|
/// Adds support for special Unix file types such as block/character devices,
|
||||||
/// pipes, and sockets.
|
/// pipes, and sockets.
|
||||||
///
|
|
||||||
/// [`FileType`]: fs::FileType
|
|
||||||
#[stable(feature = "file_type_ext", since = "1.5.0")]
|
#[stable(feature = "file_type_ext", since = "1.5.0")]
|
||||||
pub trait FileTypeExt {
|
pub trait FileTypeExt {
|
||||||
/// Returns whether this file type is a block device.
|
/// Returns whether this file type is a block device.
|
||||||
|
Loading…
Reference in New Issue
Block a user