Skip to main content

to_session

Function to_session 

Source
pub fn to_session(preset: &Preset) -> Session
Expand description

A preset as the session it builds.

The scripts are REPL lines because that is how the REPL loads them; anything outside a terminal (the MCP server, the docs) wants the session, or the page crate::sketch::render makes of it.