def Ip4.cidr.go

bend-kube-runtime@0.2.0.0 · src/proxy.bend:98

import bend-kube-runtime@0.2.0.0/src/proxy.bend as Proxy
import Base

98def Ip4.cidr.go(h: String, parts: List<&2, String>) -> Bool:
99  match parts:
100    case Con{n, Con{b, Nil{}}}:
101      Ip4.in(Ip4.parse(h), Ip4.parse(n), Ip4.mask.of(U32.read(b)))
102    case _:
103      False{}

Uses (7)

Used by (1)