7using System.Diagnostics.CodeAnalysis;
20 internal readonly
struct Label : IEquatable<Label>
22 internal readonly
int m_label;
24 internal Label(
int label) => m_label = label;
29 public int Id => m_label;
31 public override int GetHashCode() => m_label;
33 public override bool Equals(
object? obj) =>
34 obj is Label other && Equals(other);
36 public bool Equals(Label obj) =>
37 obj.m_label == m_label;
39 public static bool operator ==(Label a, Label b) => a.Equals(b);
41 public static bool operator !=(Label a, Label b) => !(a == b);