pub fn major_from_value(value: &Value) -> Option<u32>Expand description
Extract the specification major from a sigma-version YAML value.
Accepts an integer major (3), a float whose integer part is the major
(2.1 -> 2), or a release string ("3", "2.1.0", "v3"). Only the
major component is read. Returns None when the value cannot be interpreted
as a version, so the caller can warn and treat it as absent.