Crate nil

Source
Expand description

§nil

crates.io docs.rs

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§

ShortToString
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() or Default::default(), good for structure initialization. Inspired by a function of the same name and purpose in bevy_utils.