Skip to content

Protobuf and Struct questions #7797

Answered by PeterJohnson
narmstro2020 asked this question in Q&A
Discussion options

You must be logged in to vote

No, they work for both mutable and immutable data types, and in fact default to mutable operation. See eg Struct.unpackInto() and Struct.isImmutable(). A struct implementation for a mutable data type would set up isImmutable() to return false and provide an unpackInto implementation to mutate the passed-in object.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by narmstro2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants