doc.rust-lang.org
fn is_terminal(&self) -> bool
Returns true if the descriptor/handle refers to a terminal/tty.
method
std
Stable since 1.70.0
Version 1.100.0-nightly
doc.rust-lang.org
pub trait IsTerminal
Trait to determine if a descriptor/handle refers to a terminal/tty.
trait
std
Stable since 1.70.0
Version 1.100.0-nightly
doc.rust-lang.org
pub mod prelude
The I/O Prelude.
module
std
Stable since 1.0.0
Version 1.100.0-nightly
doc.rust-lang.org
pub fn pipe() -> io::Result<(PipeReader, PipeWriter)>
Creates an anonymous pipe.
function
std
Stable since 1.87.0
Version 1.100.0-nightly
doc.rust-lang.org
pub fn try_clone(&self) -> io::Result<Self>
Creates a new PipeWriter instance that shares the same underlying file description.
method
std
Stable since 1.87.0
Version 1.100.0-nightly
doc.rust-lang.org
pub struct PipeWriter
Write end of an anonymous pipe.
struct
std
Stable since 1.87.0
Version 1.100.0-nightly
doc.rust-lang.org
pub fn try_clone(&self) -> io::Result<Self>
Creates a new PipeReader instance that shares the same underlying file description.
method
std
Stable since 1.87.0
Version 1.100.0-nightly
doc.rust-lang.org
pub struct PipeReader
Read end of an anonymous pipe.
struct
std
Stable since 1.87.0
Version 1.100.0-nightly
doc.rust-lang.org
pub mod io
Traits, helpers, and type definitions for core I/O functionality.
module
std
Stable since 1.0.0
Version 1.100.0-nightly
doc.rust-lang.org
primitive i8
The 8-bit signed integer type.
primitive
std
Stable since 1.0.0
Version 1.100.0-nightly
doc.rust-lang.org
primitive i64
The 64-bit signed integer type.
primitive
std
Stable since 1.0.0
Version 1.100.0-nightly
doc.rust-lang.org
primitive i32
The 32-bit signed integer type.
primitive
std
Stable since 1.0.0
Version 1.100.0-nightly
doc.rust-lang.org
primitive i16
The 16-bit signed integer type.
primitive
std
Stable since 1.0.0
Version 1.100.0-nightly
doc.rust-lang.org
primitive i128
The 128-bit signed integer type.
primitive
std
Stable since 1.26.0
Version 1.100.0-nightly
doc.rust-lang.org
pub fn new() -> RandomState
Constructs a new RandomState that is initialized with random keys.
associated_function
std
Stable since 1.7.0
Version 1.100.0-nightly
doc.rust-lang.org
pub struct RandomState
RandomState is the default state for HashMap types.
struct
std
Stable since 1.7.0
Version 1.100.0-nightly
doc.rust-lang.org
pub const fn new() -> DefaultHasher
Creates a new DefaultHasher.
associated_function
std
Stable since 1.13.0
Version 1.100.0-nightly
doc.rust-lang.org
pub struct DefaultHasher
The default Hasher used by RandomState.
struct
std
Stable since 1.7.0
Version 1.100.0-nightly
doc.rust-lang.org
pub mod hash
Generic hashing support.
module
std
Stable since 1.0.0
Version 1.100.0-nightly
doc.rust-lang.org
pub fn write<P, C>(path: P, contents: C) -> io::Result<()>
Writes a slice as the entire contents of a file.
function
std
Stable since 1.26.0
Version 1.100.0-nightly