Skip to main content

Crate term_render_macros

Crate term_render_macros 

Source

Macrosยง

color
Expands to a call to the Colorize trait, reducing boilerplate. If a single value is provided, it converts to a call to Colorize::colorize with the provided value. If none, or multiple values are provided, it converts to a call to Colorize::colorizes with a vector of the provided values. This macro can be used with any type that implements the Colorize trait, including:
send_sync
Expands the provided value into an Arc<RwLock<T>>. This is a shorthand macro to avoid writing the full expression every time (i.e. std::sync::Arc::new(parking_lot::RwLock::new(value)) ).