Skip to main content

encode_format_version

Function encode_format_version 

Source
pub fn encode_format_version(s: &str) -> Option<i64>
Expand description

"1.0.0"1_000_000. The inverse of the frontend’s decodeFormatVersion and the exact encoding encodeFormatVersion produces: three decimal digits per component, major * 1_000_000 + minor * 1_000 + patch, each component 0..=999.

None for anything else — a two-component version, a component out of range, anything non-numeric. The caller treats that as “no version stated”, which the registration gate already handles.