Crate alloc_safe

Source
Expand description

Safe memory allocation, no panic!

Macros§

try_format
Creates a String using interpolation of runtime expressions.

Structs§

AllocError
The error type for allocation failure.

Traits§

TryToString
A trait for converting a value to a String.
VecAllocExt
Extension for Vec<T, A>
VecExt
Extension for Vec<T>

Functions§

catch_alloc_error
Invokes a closure, capturing the panic of memory allocation error if one occurs.
try_format
The try_format function takes an Arguments struct and returns the resulting formatted string.