Skip to main content

DeepSizeOf

Derive Macro DeepSizeOf 

Source
#[derive(DeepSizeOf)]
Expand description

Derive macro for the DeepSizeOf trait.

Generates an implementation that sums the deep_size_of_children of all fields (for structs) or the active variant’s fields (for enums).