Expand description
Variable environment, Value type, and workspace persistence.
Structs§
- Lambda
Fn - A compiled anonymous function closure with its source text.
Enums§
- Value
- A value held in the variable environment.
Functions§
- config_
dir - Returns the platform-specific configuration directory for ccalc.
- load_
workspace - Loads variables from
pathinto a newEnv. Recognises:name = 3.14(Scalar),name = 'str'(Str),name = "str"(StringObj). Unrecognised lines are silently skipped. - load_
workspace_ default - Loads variables from the default workspace path (
~/.config/ccalc/workspace.toml) into a newEnv. - save_
workspace - Saves scalars and strings from
envtopath. Matrices, complex values, and strings with unsafe characters are skipped. Format:name = valueper line, where value is a raw f64,'str', or"strobj". - save_
workspace_ default - Saves scalars and strings from
envto the default workspace path (~/.config/ccalc/workspace.toml). - save_
workspace_ vars - Saves only the named variables from
envtopath. Variables not present inenvare silently ignored.
Type Aliases§
- Env
- Variable environment: maps names to values.