Skip to main content

Module value

Module value 

Source
Expand description

The workspace value and small map helpers.

The whole workspace is one SIM value: a map of panes, the focused pane, the experience mode, the session and history refs, and palette state. It is built from kernel Expr only, so it round-trips through any general codec and can be saved, shared, versioned, diffed, and restored as data. Layout is data; restoring a session is decoding a value.

Constants§

WORKSPACE_CLASS
The workspace class symbol carried in the class field.

Functions§

as_int
Read a number value’s canonical literal as i64.
focus
The focused pane id, if any.
get
Look up an unqualified-keyed field by name.
int
An i64-domain number value.
key
An unqualified symbol value: Expr::Symbol(Symbol::new(name)).
map
A map value from string-keyed entries (keys become unqualified symbols).
mode
The workspace mode symbol, if set.
new_workspace
A fresh, empty workspace in mode with no panes.
panes
The list of pane records.
set
Set (or insert) an unqualified-keyed field, preserving sibling keys, in a new map value.
with_panes
Set the panes list.