doc.rust-lang.org
pub fn advance_while<P>(&mut self, predicate: P) -> usize
Advance the iterator while predicate returns true. Returns the number of items it advanced by.
method
std
Version 1.100.0-nightly
doc.rust-lang.org
pub struct WStrUnits<'a>
A safe iterator over a LPWSTR (aka a pointer to a series of UTF-16 code units terminated by a NULL).
struct
std
Version 1.100.0-nightly
doc.rust-lang.org
pub fn mul_div_u64(value: u64, numerator: u64, denom: u64) -> u64
Computes (value*numerator)/denom without overflow, as long as both numerator*denom and the overall result fit into u64 (which is the case for our time conversions).
function
std
Version 1.100.0-nightly
doc.rust-lang.org
pub mod fd
Platform-dependent file descriptor abstraction.
module
std
Version 1.100.0-nightly
doc.rust-lang.org
pub fn unique_thread_exit()
Mitigation for https://github.com/rust-lang/rust/issues/126600
function
std
Version 1.100.0-nightly
doc.rust-lang.org
pub mod env_consts
Constants associated with each target.
module
std
Version 1.100.0-nightly
doc.rust-lang.org
pub fn env() -> Env
Returns a vector of (variable, value) byte-vector pairs for all the environment variables of the current process.
function
std
Version 1.100.0-nightly
doc.rust-lang.org
pub mod env
Platform-dependent environment variables abstraction.
module
std
Version 1.100.0-nightly
doc.rust-lang.org
pub fn output_filename(fmt: &mut fmt::Formatter<'_>, bows: crate::backtrace_rs::BytesOrWideString<'_>, print_fmt: crate::backtrace_rs::PrintFmt, cwd: Option<&crate::path::PathBuf>) -> fmt::Result
Prints the filename of the backtrace frame.
function
std
Version 1.100.0-nightly
doc.rust-lang.org
pub fn __rust_end_short_backtrace<F, T>(f: F) -> T
Fixed frame used to clean the backtrace with RUST_BACKTRACE=1. Note that this is only inline(never) when backtraces in std are enabled, otherwise it's fine to optimize away.
function
std
Version 1.100.0-nightly
doc.rust-lang.org
pub fn __rust_begin_short_backtrace<F, T>(f: F) -> T
Fixed frame used to clean the backtrace with RUST_BACKTRACE=1. Note that this is only inline(never) when backtraces in std are enabled, otherwise it's fine to optimize away.
function
std
Version 1.100.0-nightly
doc.rust-lang.org
pub mod backtrace
Common code for printing backtraces.
module
std
Version 1.100.0-nightly
doc.rust-lang.org
pub unsafe fn init(argc: isize, argv: *const *const u8)
One-time global initialization.
function
std
Version 1.100.0-nightly
doc.rust-lang.org
pub fn args() -> Args
Returns the command line arguments
function
std
Version 1.100.0-nightly
doc.rust-lang.org
pub mod args
Platform-dependent command line arguments abstraction.
module
std
Version 1.100.0-nightly
doc.rust-lang.org
pub struct RwLockWriteGuard<'rwlock, T>
RAII structure used to release the exclusive write access of a lock when dropped.
struct
std
Stable since 1.0.0
Version 1.100.0-nightly
doc.rust-lang.org
pub struct RwLockReadGuard<'rwlock, T>
RAII structure used to release the shared read access of a lock when dropped.
struct
std
Stable since 1.0.0
Version 1.100.0-nightly
doc.rust-lang.org
pub struct RwLock<T>
A reader-writer lock
struct
std
Stable since 1.0.0
Version 1.100.0-nightly
doc.rust-lang.org
pub struct MutexGuard<'a, T>
An RAII implementation of a "scoped lock" of a mutex. When this structure is dropped (falls out of scope), the lock will be unlocked.
struct
std
Stable since 1.0.0
Version 1.100.0-nightly
doc.rust-lang.org
pub fn try_lock(&self) -> TryLockResult<MutexGuard<'_, T>>
Attempts to acquire this lock.
method
std
Stable since 1.0.0
Version 1.100.0-nightly