Size_of without std?

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.

Use core::mem::size_of?

2 Likes

lol. sure, why not. thanks :slight_smile:

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

2 Likes