Size_of without std?


#1

I’m writing embedded code, which requires no std

   #![no_std]

However, I’d like to do size calculations — is there a way to get std::mem::size_of functionality without std?

I feel like I’m missing something basic.


#2

Use core::mem::size_of?


#3

lol. sure, why not. thanks :slight_smile:

hadn’t seen in the different google searches. should look more at the docs.