Crate r3bl_rs_utils_core
source · [−]Re-exports
pub use color_text::styles::*;
pub use async_safe_share_mutate::*;
pub use color_text::styles::*;
pub use color_text::*;
pub use decl_macros::*;
Modules
ANSI colorized text https://github.com/ogham/rust-ansi-term helper methods.
Macros
https://danielkeep.github.io/tlborm/book/mbe-macro-rules.html#repetitions
Declarative macro to surround the given block with a call to tokio::spawn
. This is
useful for spawning a task that will run in the background from a function that is NOT
async.
Declarative macro to generate the API call functions. This adds the following:
Unwrap the $option
, and if None
then run the $next
closure which must return a
value that is set to $option
. Basically a way to compute something lazily when it
(the Option
) is set to None
.
Unwrap the $option
, and if None
then run the $next
closure which must return an
error. This macro must be called in a block that returns a ResultCommon<T>
.
Runs the $code
block after evaluating the $eval
expression and assigning it to
$id
.