Skip to main content

read_spec

Function read_spec 

Source
pub fn read_spec(
    dir: &Utf8Path,
    marker_filename: &str,
) -> Result<Option<MarkerSpec>>
Expand description

Read and parse a .yuilink from dir.

Returns:

  • Ok(None) — no marker file present
  • Ok(Some(PassThrough)) — present and empty / whitespace-only / no [[link]]
  • Ok(Some(Explicit { ... })) — present with [[link]] entries
  • Err(_) — present but malformed TOML, or other IO error