Skip to main content

Crate hexicon_host

Crate hexicon_host 

Source
Expand description

The interface between the Hexicon VM and the system it runs on.

The VM has no direct access to terminals, files, clocks, or randomness. Everything outside the VM goes through a Host, which keeps the VM portable to WebAssembly and makes runs reproducible under test.

Modules§

entities
Named character entities the console understands in program output, such as & and —.
file_attr
Attributes of a file. The values are the ones programs see.
file_type
What kind of thing a file name refers to. The values are the ones programs see, and can be combined.
pane
Panes: the panes a program can divide the screen into, such as a status line across the top.
rich
The rich display’s checker: turns what a program writes into a document within Hexicon’s profile of HTML and CSS.

Structs§

BufferHost
A host that collects console output in memory.
FileInfo
What the host knows about a file.
Time
The time on the host’s clock.

Enums§

FileChoice
What the player did with a file dialog.
FileDialog
Which file dialog a program asks for.
FileError
Why a file could not be read or written.
FileKind
What kind of file a program asks for, so that a dialog can show files of that kind and name a new one as they are named.
Input
What a host has when it is asked for input.
Sandbox
Where a file is in relation to the folder a program’s file access is confined to.

Traits§

Host
The services a VM needs from the system it runs on.