Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
tathisit
· 5y ago · 0 comments
It's impossible for Option<T> to be the same size as T. Option is a tagged enum, where will the tag go?
Comments
[–]
agolliver
5y ago
Looks like it's only true for pointer types which cannot be null (so they can reuse null as the None tag)
https://doc.rust-lang.org/std/option/