Skip to main content
Journey Uncommon Logo
JourneyUncommon
easyRustenums and data variantsSingle-choice MCQ

What is the size in memory of an `Option<Box<i32>>` compared to a `Box<i32>`, and why?

use std::mem::size_of; println!("{}", size_of::<Box<i32>>()); println!("{}", size_of::<Option<Box<i32>>>());