Expand description
Derive macro for the SizeBytes trait from re_byte_size.
ⓘ
use ::re_byte_size::SizeBytes;
use re_byte_size_derive::SizeBytes;
#[derive(SizeBytes)]
struct Foo {
name: String,
values: Vec<u32>,
#[size_bytes(ignore)]
cache: Vec<u8>,
}Derive Macros§
- Size
Bytes - Derives
SizeBytesfor a struct or enum.