def eq

bend-kit-netip@0.1.0.0 · netip.bend:344

import bend-kit-netip@0.1.0.0/netip.bend as Netip
import Base

344def eq(x: Addr, y: Addr) -> Bool:
345  match x y:
346    case V4{a} V4{b}:
347      U32.is_eq(a, b)
348    case V6{a, b, c, d} V6{e, f, g, h}:
349      Bool.and(U32.is_eq(a, e), Bool.and(U32.is_eq(b, f), Bool.and(U32.is_eq(c, g), U32.is_eq(d, h))))
350    case _ _:
351      False{}

Uses (4)

Used by (0)

No other definition uses this definition.