Skip to main content

api_from_src

Function api_from_src 

Source
pub fn api_from_src(src: &str) -> Result<Api>
Expand description

Parse Rust source text and extract its Api.

ยงErrors

Returns a (line/column aware) error when the source does not parse as Rust, or when an annotated item cannot be mapped to the IR.