pub fn from_file(path: &PathBuf) -> Result<Theme> {
        let content = read_file_with_error(
            path,
            "No `theme.toml` file found. \
             Is the `theme` defined in your `config.toml` present in the `themes` directory \
             and does it have a `theme.toml` inside?",
        )?;
        Theme::parse(&content)
    }
/// Parses a theme file from the given path
Parses a theme file from the given path
Parses a theme file from the given path
pub fn from_file(path: &PathBuf) -> Result<Theme> {
        let content = read_file_with_error(
            path,
            "No `theme.toml` file found. \
             Is the `theme` defined in your `config.toml` present in the `themes` directory \
             and does it have a `theme.toml` inside?",
        )?;
        Theme::parse(&content)
    }
pub fn from_file ( path : & PathBuf ) -> Result < Theme > { let content = read_file_with_error ( path , " \
 \
 " , ) ? ; Theme :: parse ( & content ) }
Parses a theme file from the given path
Parses a theme file from the given path
path
&PathBuf
path
&PathBuf