Module r3bl_rs_utils::utils

source ·
Expand description

This module contains a lot of utility functions that are meant to:

  1. Increase the ergonomics of using wrapped values in Rust
  2. Colorizing console output.
  3. Easy to work w/ lazy hash maps.
  4. Easy to work w/ readline.
  5. Interrogation of types.

Re-exports

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 on r3bl-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.