Expand description
Various utilities that are not specific to evobench
Modules§
- arc
- ask
- auto_
vivify - bool_
env - cleanup_
daemon - A daemon process that clean ups open files when the main process is killed.
- clone
- conslist
- Cons list. Only works with normal references. That’s because making it generic for the reference/container type appears unworkable, even though feasible in principle, due to requiring explicit type parameters on every single cons call. The solution will be to generate the code for versions using Rc, Arc or whatever when needed. (Or, use dyn?, or perhaps/probably rather, enum.)
- crypto_
hash - Cryptographically hash a data structure
- ctx
- escaped_
display - Trait and temporary wrapper around strings and paths to
Displaythem escaped. - exit_
status_ ext - fallback
- Avoid errors when implementing fallbacks with option structs.
- get_
terminal_ width - Hack to get terminal width to allow making older Clap versions auto-adapt to the current width.
- home
- html_
util - Should add these to ahtml crate.
- integers
- into_
arc_ path - invert
- invert_
index - lazy
- Easy lazily constructed values
- linear
- Run-time “linear types”
- linux_
mounts - Get information on the filesystem mount points on Linux
- logging
- Simple logging infrastructure
- micro_
vec - A vector type that is optimized for storing 0 or 1 elements
- ndjson_
pipe - path_
is_ top - path_
resolve_ home - rayon_
util - recycle
- ref_
or_ owned - Stupid. Cow doesn’t work for clonable types that don’t have their own borrows? I don’t understand why. Just do my own now.
- safe_
string - Try to use data from the OS (OsString) as strings, if possible, fall back to the original data (lossless) if not possible.
- slice_
or_ box Cow<'t, [T]>requiresTto implementToOwned, i.e.to_owned()wants to make a deep copy, apparently.SliceOrBoxis just about the outermost layer. (RefOrOwnedonly represents a reference or owned value of the same type and hence does not work for this, either.)- tuple_
transpose - Convert tuples of
Resultvalues into aResultof theOkvalues so that errors can be propagated easily. (There is alsotuple-transposecrate offering the same, but it might not stay around and has no docs.) - type_
name_ short - unix
- user