Function which is called by change when making changes to a Doc<T>
Doc<T>
The type of value contained in the document
This function may mutate doc
doc
Function which is called by change when making changes to a
Doc<T>