Expand description
Development extensions for the Rust Standard Library.
Modules
- Documentation on features.
allocRe-exported Rustalloclibrary environment.coreRe-exported Rustcorelibrary environment.stdRe-exported Ruststdlibrary environment.- All items are flat re-exported here.
- any
anyDynamic typing and reflection, extendsstd::any. - cmp
cmpComparing and ordering, extendsstd::cmp. - convert
convertConversion, extendsstd::convert. - data
data - Optional external dependencies.
- mem
memMemory management, extendsstd::mem. - meta
metaMeta-programming and code generation. - num
numNumeric types, extendsstd::num. - OS-specific, extends
std::os. - path
pathPaths, extendsstd::path. - The common prelude.
- result
result - task
task - text
text - time
timeTemporal quantification, extendsstd::time.
Macros
- ansi
dependandtextandtermConcatenatesAnsiescape codes, and returns a&str. - ansib
dependandtextandtermConcatenatesAnsiescape codes, and returns a&[u8]. - ansip
dependandtextand (stdorlinux_unsafe) andtermPrints concatenatedAnsiescape codes using the Ansiprintmethod. - cdbg
text - const_for
metaA for loop that is usable in const expressions. - Configures a feature as deprecated, in order to warn when it is enabled.
- format_buf
textReturns a formattedstrslice backed by a buffer,no_stdcompatible. - iif
metaA more compactinlineif. - Returns the size of an expression in bytes.
- os_eprint(
stdorlinux_unsafe) anddependandtextPrints to the standard error. - os_eprintln(
stdorlinux_unsafe) anddependandtextPrints to the standard error, with a newline. - os_print(
stdorlinux_unsafe) anddependandtextPrints to the standard output. - os_println(
stdorlinux_unsafe) anddependandtextPrints to the standard output, with a newline. - paste
metaAllows to paste identifiers together. - sf
metaskipformatting macro. - sleep4
taskandstdA more compactstd::thread::sleep.