Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- enum MyOwnType<T> {
- A,
- B(T)
- }
- fn main() {
- println!("{}", std::mem::size_of::<&u8>());
- println!("{}", std::mem::size_of::<Option<&u8>>());
- println!("{}", std::mem::size_of::<MyOwnType<&u8>>());
- }
Add Comment
Please, Sign In to add comment