eql
Function parameters
Parameters
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
pub fn eql(a: Query, b: Query) bool {
if (a.cpu_arch != b.cpu_arch) return false;
if (!a.cpu_model.eql(b.cpu_model)) return false;
if (!a.cpu_features_add.eql(b.cpu_features_add)) return false;
if (!a.cpu_features_sub.eql(b.cpu_features_sub)) return false;
if (a.os_tag != b.os_tag) return false;
if (!OsVersion.eqlOpt(a.os_version_min, b.os_version_min)) return false;
if (!OsVersion.eqlOpt(a.os_version_max, b.os_version_max)) return false;
if (!versionEqualOpt(a.glibc_version, b.glibc_version)) return false;
if (a.android_api_level != b.android_api_level) return false;
if (a.abi != b.abi) return false;
if (!a.dynamic_linker.eql(b.dynamic_linker)) return false;
if (a.ofmt != b.ofmt) return false;
return true;
}