def Instant.is_eq
import bend-time-lib@0.4.0.1/instant.bend as Instantimport Base
63def Instant.is_eq(a: Instant, b: Instant) -> Bool:
64 match a b:
65 case Instant{+d1, +s1, +n1} Instant{+d2, +s2, +n2}:
66 Bool.and(
67 U32.is_eq(d1, d2),
68 Bool.and(U32.is_eq(s1, s2), U32.is_eq(n1, n2))
69 )