fn spec_matches(spec: &str, name: &str, version: &str) -> bool
Whether spec is name or name@version.
spec
name
name@version