Skip to content

Instantly share code, notes, and snippets.

View laumann's full-sized avatar

Thomas Bracht Laumann Jespersen laumann

View GitHub Profile

Keybase proof

I hereby claim:

  • I am laumann on github.
  • I am laumann (https://keybase.io/laumann) on keybase.
  • I have a public key ASB6uPzphbMgk2QIy9xCvqE2Z3fiSuW9NNReFX1Qx0pDoQo

To claim this, I am signing this object:

@laumann
laumann / max_size_of.rs
Created June 5, 2015 13:48
Finding the max size of transmitted values
#![feature(test)]
extern crate test;
use std::marker::PhantomData;
use std::mem::size_of;
use test::black_box;
trait MaxSizeOf : Sized {
fn max_size_of() -> usize {
size_of::<Self>()
@laumann
laumann / keybase.md
Created January 26, 2015 19:45
keybase.md

Keybase proof

I hereby claim:

  • I am laumann on github.
  • I am laumann (https://keybase.io/laumann) on keybase.
  • I have a public key whose fingerprint is BBD8 98F6 7DB2 72AF C15C 9CA9 0AEB C8BE 040F 4873

To claim this, I am signing this object: