Expand description
reexported from devela. Development extensions for the Rust Standard Library.
Features
std
(default): enables functionality that depends on the standard library. Disabling it makes the crateno_std
compatible.alloc
: enables functionality that depends on allocation. Included instd
.no_std
: enables functionality incompatible withstd
(unused).
safe
: forbids unsafe at the crate level.safest
: forbids unsafe recursively (unused).unsafe
: enables all the unsafe features:unsafe_cmp
: enables const floating-point comparison incmp
, usingtransmute
for constant access to the bits.unsafe_convert
: enables usingMaybeUninit
forslice_into_array
initialization inconvert
.unsafe_fmt
: providesIntBuf
andIntBufable
infmt
.unsafe_num
: enablesnew_unchecked
and implementsbytemuck
traits for new types defined innum
.
unsafest
: enables unsafe recursively (unused).
Modules
- All items are reexported here.
- The
Box<T>
type, extendsalloc::boxed
. - Comparing and ordering, extends
core::cmp
. - Code generation and meta-programming.
- Conversion, extends
core::convert
. - Formatting, extends
alloc::fmt
. - Memory, extends
core::mem
. - Numeric types, extends
core::num
. - Operators, extends
core::ops
. - Option, extends
core::option
. - Paths, extends
std::path
. - The common prelude.
- Result, extends
core::result
. - Slice, extends
alloc::slice
. - Strings, extends
alloc::string
. - thread
std
Native threads, extendsstd::thread
.
Macros
- S
alloc
BriefString
constructor. - Set a deprecated feature in order to display a warning if it’s enabled.
- Returns a formatted
str
ing slice backed by a buffer,no_std
compatible. i
nlineif
.- Alias of
Path::new(concat![env!("CARGO_MANIFEST_DIR"), $path])
. - Allows to paste identifiers together (reexported from the paste crate).
r
ustf
ormats
kip macro.- Briefer
std::thread::
sleep
.