The dynamic Object
container.
This modules contains the Object
type, which is a dynamic type erased container.
Objects in Rune are declared using the special #{}
syntax, but can also be interacted with through the fundamental Object
type.
Fields can be added to objects "on the fly", simply by assigning to them:
let object = #;
object.hello = "World";
assert_eq!;
Examples
let object1 = #;
let object2 = new;
object2.insert;
assert_eq!;