Skip to main content

impl_logical_memory_profile

Macro impl_logical_memory_profile 

Source
macro_rules! impl_logical_memory_profile {
    ($type_path:path as $type_name:literal { $($field:ident),* $(,)? }) => { ... };
    ($type_name:ident { $($field:ident),* $(,)? }) => { ... };
}
Expand description

Generates a LogicalMemoryProfile implementation that delegates to each field.

§Example

impl_logical_memory_profile! {
    RemovedConstraint {
        constraint,
        removed_reason,
        removed_reason_parameters,
    }
}

// For types with path (e.g., v1::Parameters), specify type name explicitly:
impl_logical_memory_profile! {
    v1::Parameters as "Parameters" {
        entries,
    }
}