Expand description
§nil
A small library containing some experimental things to make my rust life a little easier.
Also re-exports some libraries that i use in almost every project.
Re-exports§
pub use smart_default;pub use once_cell;pub use parking_lot;
Modules§
- prelude
- std_
prelude - Extra std imports that i use a lot.
Macros§
- flat
- Makes defining a flat module (e.g. foo::Baz instead of foo::bar::Baz) easier.
- io_
add_ msg - Expands to a function that prepends a message to an io error, to be used with
Result::map_err.
Traits§
- Short
ToString - Extension trait that shortens
.to_owned()or.to_string_lossy().to_string()into just.s()to get a String.
Functions§
- default
- Shorthand for
T::default()orDefault::default(), good for structure initialization. Inspired by a function of the same name and purpose inbevy_utils.