Function versionRange [src]

Provides a tagged union. Target does not store the tag because it is redundant with the OS tag; this function abstracts that part away.

Prototype

pub inline fn versionRange(os: Os) TaggedVersionRange

Parameters

os: Os

Source

pub inline fn versionRange(os: Os) TaggedVersionRange { return switch (os.tag.versionRangeTag()) { .none => .{ .none = {} }, .semver => .{ .semver = os.version_range.semver }, .hurd => .{ .hurd = os.version_range.hurd }, .linux => .{ .linux = os.version_range.linux }, .windows => .{ .windows = os.version_range.windows }, }; }