Skip to content

Are structs containing functions serializable? #30

Description

@mvccogo

Thank you for the library! Question: is it guaranteed that, when feeding a given struct with functions, only the member variables will be serialized? If so, does the function declaration position matter?

Use case: a verify() function throwing a boolean after some sanity checks in the struct data.

@p-ranav

Activity

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

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions