Skip to content

Instantly share code, notes, and snippets.

@richo
Created May 28, 2015 05:48
Show Gist options
  • Select an option

  • Save richo/e1773a9c5db57ee365e2 to your computer and use it in GitHub Desktop.

Select an option

Save richo/e1773a9c5db57ee365e2 to your computer and use it in GitHub Desktop.
enum Thing {
Bar(HugeArray),
Baz(HugeArray),
}
struct Foo {
s: Box<Thing>,
}
// vs
enum Thing {
Bar(Box<HugeArray>),
Baz(Box<HugeArray>),
}
struct Foo {
s: Thing,
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment