Skip to main content

load_from_path

Function load_from_path 

Source
pub fn load_from_path(path: &Path) -> Result<Theme, ThemeError>
Expand description

Read a TOML file from path and return a fully-resolved Theme.

Palette $name references are resolved automatically.

ยงErrors

Returns ThemeError::Io on read failure or any error that parse_toml can return.