Expand description
A varied collection of Rust
development helper & extension utilities.
Modules
- Reexported
az
crate. Provides casts and checked casts.
Macros
- Brief
String
constructor. - cdbg
std
- Returns a formatted
str
ing slice backed by a buffer,no_std
compatible. i
ndentedformat
.i
nlineif
.- Alias of
Path::new(concat![env!("CARGO_MANIFEST_DIR"), $path])
. - Reexported from the
paste
crate. Allows to paste identifiers in a macro. r
ustf
ormats
kip macro.
Structs
- An integer that is known not to equal the specific value
V
. - An integer that is known not to equal the specific value
V
. - An integer that is known not to equal the specific value
V
. - An integer that is known not to equal the specific value
V
. - An integer that is known not to equal the specific value
V
. - An integer that is known not to equal the specific value
V
. - An integer that is known not to equal the specific value
V
. - An integer that is known not to equal the specific value
V
. - An integer that is known not to equal the specific value
V
. - An integer that is known not to equal the specific value
V
.
Traits
- Represents a type that you can apply arbitrary functions to.
- AltDebug
alloc
An alternativeDebug
. - Allows to chain free functions into method call chains.
- Extension trait providing additional methods for
Option
. - Extension trait providing additional methods for
Result
.
Functions
- bx
alloc
BriefBox
constructor. - counter_string
alloc
Returns aString
where you always know each character’s position. - crate_root
std
Returns an absolutePathBuf
, relative to thecrate
’s root. - Like
crate_root
but returns aString
. - Returns a formatted string backed by a buffer,
no_std
compatible. - indent
alloc
Indents theinput
multi-line string with the given number ofspaces
. - Returns the maximum of two
PartialOrd
ered values. - Returns the minimum of two
PartialOrd
ered values. - Converts
&[T]
to[U; N]
whenU
implementsFrom<T>
. - slice_into_vec
alloc
Converts&[T]
toVec<U>
whenU
implementsFrom<T>
. - Returns a left subslice of
slice
, with the given maximumlen
. - Returns a middle subslice of
slice
, with the given maximumlen
. - Returns a right subslice of
slice
, with the given maximumlen
. - try_slice_into_vec
alloc
Tries to convert&[T]
toVec<U>
whenU
implementsTryFrom<T>
. - try_vec_into_vec
alloc
Tries to convertVec<T>
toVec<U>
whenU
implementsTryFrom<T>
. - vec_into_vec
alloc
ConvertsVec<T>
toVec<U>
whenU
implementsFrom<T>
.
Attribute Macros
- Compiles the associated code only if the inner predicate equals
true
.