Odds and ends — collection miscellania. Extra functionality for slices (`.find()`, `RevSlice`), strings and other things. Things in odds may move to more appropriate crates if we find them.
cfg-if • 1.0.0A macro to ergonomically define an item depending on a large number of #[cfg]
parameters. Structured like an if-else chain, the first matching branch is the
item that gets emitted.
INDIRECT
0
either • 1.13.0The enum `Either` with variants `Left` and `Right` is a general purpose sum type with two cases.
INDIRECT
0
getrandom • 0.1.16A small cross-platform library for retrieving random data from system source
proc-macro2 • 1.0.88A substitute implementation of the compiler's `proc_macro` API to decouple token-based libraries from the procedural macro use case.
rand • 0.7.3Random number generators and other randomness functionality.
INDIRECT
15
rawpointer • 0.2.1Extra methods for raw pointers and `NonNull<T>`.
For example `.post_inc()` and `.pre_dec()` (c.f. `ptr++` and `--ptr`),
`offset` and `add` for `NonNull<T>`, and the function `ptrdistance`.
DIRECT
0
rawslice • 0.1.1Reimplementation of the slice iterators, with extra features. For example
creation from raw pointers and start, end pointer accessors.