Skip to main content

load

Function load 

Source
pub fn load(data: &str, opts: &LoadOptions) -> Result<Value, LoadError>
Expand description

Deserialize a serpent fragment.

Accepts either a bare expression or a do ... end block. Returns Ok(value) on success. Returns a LoadError on a parse error, or in safe mode when the input tries to call a function.

ยงErrors

Returns LoadError when parsing fails or when a call is rejected in safe mode.