Crate ra_ap_stdx
source ·Expand description
Missing batteries for standard libraries.
Modules
- This file is a port of only the necessary features from https://github.com/chris-morgan/anymap version 1.0.0-beta.2 for use within rust-analyzer. Copyright © 2014–2022 Chris Morgan. COPYING: https://github.com/chris-morgan/anymap/blob/master/COPYING“ Note that the license is changed from Blue Oak Model 1.0.0 or MIT or Apache-2.0 to MIT OR Apache-2.0
- See
NonEmptyVec
. - A micro-crate to enhance panic messages with context info.
- Read both stdout and stderr of child without deadlocks.
- We don’t use
rand
, as that’s too many things for us. - A utility module for working with threads that automatically joins threads upon drop and abstracts over operating system quality of service (QoS) APIs through the concept of a “thread intent”.
Macros
- Asserts that the condition is always true and returns its actual value.
- Appends formatted string to a
String
. - Generates
From
impls forEnum E { Foo(Foo), Bar(Bar) }
enums - Asserts that the condition is never true and returns its actual value.
Structs
- A
std::process::Child
wrapper that will kill the child on drop.
Functions
- Prints backtrace to stderr, useful for debugging.
- Returns all final segments of the argument, longest first.