Crate chj_rustbin

Source

Modules§

alist
alternatively
checked_mutex
Check whether the thread itself already locks the mutex; only a hack currently, won’t be generally reliable, right? Should probably use cooptex or tracing-mutex instead. To use conditionally in debug mode, import as:
chunks
Somehow chunks from itertools 0.11.0 is not Send, thus try my own.
conslist
duu
fp
get_terminal_width
Hack to get terminal width to allow making older Clap versions auto-adapt to the current width.
index_map
A Vec that automatically grows to accommodate the index passed to insert, and tracks occupancy of its slots.
io
numbers
parse
path_from
More From implementations for Path
path_util
region
A region with lifetime tracking for ids and sync support.
sequences
text
time
util
whichgit

Macros§

T
Define the type LocalParseErrorContext to a type that implements ParseContext where using this macro!
file_location
gen_try_result
Alternative for ? in genawaiter closures.
impl_item_options_from
Implement conversion from the type $from to ItemOptions. Assumes the dirs, files, and other fields are present on $from as bool.
implement_map_trait_for
Macro that defines code to delegate trait methods to the same-named and -typed original methods. This requires the map type name to be given twice, and to use K and V as type names, or the macro wouldn’t work (macros by example do not appear to have the features necessay to do this properly).
loop_try
A loop that caches errors and retries with exponential backoff. (Backoff parameters and error messaging hard coded for now, as is anyhow::Result.)
parse_error
scope
Make a delimited for temporary objects. Unlike { ... } which is not enough, this macro also includes a ; which does the trick. Useful e.g. to limit the scope of Mutex or RefCell guards.
try_do
try_option
try_result
tryoption