Skip to main content

open_named_in_memory_mouth

Function open_named_in_memory_mouth 

Source
pub fn open_named_in_memory_mouth(name: &str, content: String) -> Result<()>
Expand description

Open a gullet mouth over in-memory content whose source is named name (a real path/filename). Uses the Mouth’s cached-content branch so locators carry name rather than “Anonymous String”.

Low-level and position-agnostic: it does NOT touch the document-global SOURCEDIRECTORY/SEARCHPATHS, so it is safe for a continuation (the forked child’s body over already-inherited state) or a nested include. For the main document load, go through Converter::digest_named, which installs the document directory first.