Skip to main content

parse_spec

Function parse_spec 

Source
pub fn parse_spec(spec: &str) -> Result<(String, String), AddError>
Expand description

Parse a pkg#item spec into (pkg_id, item).

ยงErrors

Returns AddError when the spec has no #, or either side is empty.