Skip to content

Instantly share code, notes, and snippets.

View TethysSvensson's full-sized avatar

Tethys Svensson TethysSvensson

  • Copenhagen, Denmark
View GitHub Profile
use std::marker::PhantomData;
pub struct NegOne;
pub struct Zero;
pub struct Bit0<N>(PhantomData<N>);
pub struct Bit1<N>(PhantomData<N>);
macro_rules! t {
($accum:ty) => {