pub fn is_canonical_version(version: &str) -> bool
Returns whether version is a canonical version, such as the 0.2 in the canonical interface name a:b/c@0.2.
version
0.2
a:b/c@0.2