versionEqualOpt
Function parameters
Parameters
- a:?SemanticVersion
- b:?SemanticVersion
Type definitions in this namespace
Types
Functions in this namespace
Functions
- parseCpuArch
- Similar to `parse` except instead of fully parsing, it only determines the CPU
- parseVersion
- Similar to `SemanticVersion.parse`, but with following changes:
- serializeCpu
- Renders the query into a textual representation that can be parsed via the
Source
Implementation
fn versionEqualOpt(a: ?SemanticVersion, b: ?SemanticVersion) bool {
if (a == null and b == null) return true;
if (a == null or b == null) return false;
return SemanticVersion.order(a.?, b.?) == .eq;
}