motoko-base
motoko-base copied to clipboard
add share/unshare for class objects
share
/unshare
function for RBTree
, HashMap
and Buffer
. This is useful for supporting upgrade, which only works for shareable types.