Skip to main content

resolve_embed

Function resolve_embed 

Source
pub fn resolve_embed(
    name: &str,
    form: Form,
    origin: &Origin,
    paths: &SearchPaths,
) -> Result<Embedded, Error>
Expand description

Looks an #embed resource up (C23 6.10.3).

The search is #include’s with the two steps that are about headers left out: there are no bundled resources — a picture is not a declaration — and nothing is read from the working directory by a bare name. What is left is the directory of the file the directive is written in, for the quoted form, and then the include path.