Function spdx::license_id[][src]

pub fn license_id(name: &str) -> Option<LicenseId>

Attempts to find a LicenseId for the string Note: any ‘+’ at the end is trimmed

assert!(spdx::license_id("MIT").is_some());
assert!(spdx::license_id("BitTorrent-1.1+").is_some());