Struct ::properties::Properties

Configuration and persistent (across phases) properties.

It is recommended to store properties using structured system, such as creating a hierarchy separated by .. But it is up to you.

Methods

fn get(self, name: String) -> Option

Get a user defined property

Will return () if the property does not exist.

fn set(self, name: String, value) -> Tuple

Set a user defined property

fn has(self, name: String) -> bool

Check if a property exists

fn dump(self) -> Tuple

Dump all properties to the terminal. For debugging