13 Repositories
Rust const-either Libraries
Asserts const generic expressions at build-time.
build_assert build_assert allows you to make assertions at build-time. Unlike assert and some implementations of compile-time assertions, such as stat
Extension trait to chunk iterators into const-length arrays.
const-chunks This crate provides an extension trait that lets you chunk iterators into constant-length arrays using const generics. See the docs for m
An alternative to `qcell` and `ghost-cell` that instead uses const generics
Purpose This crate is another attempt at the ghost-cell / qcell saga of cell crates. This provides an alternative to std::cell::RefCell that can allow
Kana - a small CLI program for transliterating romaji text to either hiragana (ひらがな) or katakana (カタカナ).
Kana About Kana is a small CLI program for transliterating romaji text to either hiragana (ひらがな) or katakana (カタカナ). How it works Internally, it uses
Rust Uint crate using const-generics
Rust uint crate using const-generics Implements [UintBITS, LIMBS], the ring of numbers modulo $2^{\mathtt{BITS}}$ . It requires two generic argument
Option and Either types with variants known at compile time.
Const Either Some types to allow deciding at compile time if an option contains a value or which variant from the either type is active. This might be
Statically sized matrix using a definition with const generics
Statically sized matrix using a definition with const generics
Allocate memory at compile time!
const-alloc Link to the docs! Allocate memory at compile time! Currently, in stable rust there is no way to dynamically allocate or deallocate memory
An API for getting questions from http://either.io implemented fully in Rust, using reqwest and some regex magic. Provides asynchronous and blocking clients respectively.
eithers_rust An API for getting questions from http://either.io implemented fully in Rust, using reqwest and some regex magic. Provides asynchronous a
const panic with formatting
For panicking with formatting in const contexts. This library exists because the panic macro was stabilized for use in const contexts in Rust 1.57.0,
Const equivalents of many [`bytemuck`] functions, and a few additional const functions.
Const equivalents of many bytemuck functions, and a few additional const functions. constmuck uses bytemuck's traits, so any type that implements thos
The cumulative sibling of `Result` and `Either`.
validated The cumulative sibling of Result and Either. The Validated type has special FromIterator instances that enable all errors in a sequence to b
Utf8 to utf16 conversion functions for use in const contexts
const-utf16 utf8 to utf16 conversion functions useable in const contexts. Use const HELLO_WORLD_UTF16: &[u16]= const_utf16::encode!("Hello, world!");