Module r3bl_rs_utils::utils
source · Expand description
This module contains a lot of utility functions that are meant to:
- Increase the ergonomics of using wrapped values in Rust
- Colorizing console output.
- Easy to work w/ lazy hash maps.
- Easy to work w/ readline.
- Interrogation of types.
Re-exports
pub use lazy_field::*;pub use lazy_hash_map::*;pub use safe_unwrap::*;pub use tty::*;pub use type_utils::*;
Modules
- Data structures to make it easier to work w/ lazily computed values and caching them.
- Functions that make it easy to unwrap a value safely. These functions are provided to improve the ergonomics of using wrapped values in Rust. Examples of wrapped values are
<Arc<RwLock<T>>, and<Option>. These functions are inspired by Kotlin scope functions & TypeScript expression based language library which can be found here onr3bl-ts-utils. - This module contains a set of functions to make it easier to work with terminals.
- Helper methods to with with the type system.