Skip to main content

parse

Function parse 

Source
pub fn parse(path: &str) -> Option<AssetRef<'_>>
Expand description

Parse an @-prefixed path. Returns None for plain paths so callers can fall back to source-relative resolution. Malformed @-paths (e.g. @foo with no slash) also return None; the resolver wraps None cases into a parse-time error when the caller knows it has an @ prefix.