Y
Hacker News
new
|
ask
|
show
|
jobs
by
tathisit
1746 days ago
It's impossible for Option<T> to be the same size as T. Option is a tagged enum, where will the tag go?
1 comments
agolliver
1746 days 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/
link
https://doc.rust-lang.org/std/option/