CT-Utils
This crate contains types and behaviours which resolve at compile time.
Getting started
Include this crate as dependancy by inserting the following into your Cargo.toml
file.
[]
= "1.10.0"
Inside your lib.rs
or main.rs
add the usage of this crate.
Often used types are re-exported inside the prelude of this crate which lower the
verbosity of your implementation. Otherwise all types are accessible through their fully
qualified path.
extern crate ct_utils;
// Optional
use *;
And you're all set!
Usage
An example of the included cons list is shown, which is the CTCons
trait.
Construct a cons list of type items and calculate the offset of one specific type.
extern crate ct_utils;
use *;
use Cons;
type BigList = ;