wiwi
A lil lib containing misc utilities, and Stuff™. Contains some useful things, contains some silly things.
All exposed features are gated behind features, none of which are enabled by default.
Features
clock-timer-2- An interval tracking clock, yielding ticks at specified intervals and doing so for a specified duration. Requires an async runtimedebounce- Delay calling a function until a certain time period has passed since the last time it was called. Requires an async runtimeh- hlazy-wrap- Wrapper around an initialisation function to lazily initialise a value on first access (can be used in statics)string-pool- Global immutable string pool and String type
Async runtime features
Only one can be enabled at a time. utility implementations for tokio will be prioritised over other runtimes, if/when they are added.
tokio- Currently the only available runtime.
Feature configuration features
These don't change API usage, only some compile time behaviour under the hood.
debounce-dyn-fn- Wraps functions into aBox<dyn Fn>, to use dynamic dispatch and avoid monomorphisation binary size cost