Skip to content

Add an annotation for deriving MallocSizeOf that uses MallocUnconditionalSizeOf for specific fields #20401

Open

Description

@jdm

Whether it's derive(MallocSizeOf(unconditional = "field1,field2")) on a type or #[unconditional_malloc_size_of] on a particular field, this would make it much easier to deal with structures that contain a mixture of fields that can be automatically derived and fields that cannot (eg. #20391).

Activity

  1. added
    I-papercut
    on Mar 23, 2018
  2. highfive commented on Mar 23, 2018

    @highfive
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-devtoolsI-papercut

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions