!!! This crate is not stable yet. !!!
Reliq
A Numeric & Data Structure Toolkit designed for Portability.
A lightweight, no_std compatible library providing fixed-capacity arrays, UTF-8 strings, fixed-precision numeric types, and a generic numeric trait hierarchy. It is designed for portability where heap allocation may be undesirable, and predictablee arithmetic behaviour is required.
Fixed-Capacity Arrays
- `Array<const A: usize, B> -- stack-allocated, compile-time sized array.
- Supports:
push,pop,insert,remove.swap_insert/swap_removefor unordered collections.- Conversion to slices
as_slice,as_mut_slice, and iteration.
let mut arr: = default;
arr.push.unwrap;
arr.push.unwrap;
arr.swap_insert.unwrap;
assert_eq!;
UTF-8
Utf8<const A: usize>-- fixed-capacity Utf8 string.- Supports safe
push/popofchar, casting between capacities, and encoding/decoding from byte slices. - Implements
Display,Debug,PartialEq,Eq,Ord, andPartialOrd.
let mut s: = default;
s.push.unwrap;
s.push.unwrap;
assert_eq!;
Example
let mut value = 0;
let result = require;
assert_eq!;
License
Apache-2.0
What the app wants, not what is uses.