type net/netip.Prefix

34 uses

	net/netip (current package)
		netip.go#L642: func (ip Addr) Prefix(b int) (Prefix, error) {
		netip.go#L644: 		return Prefix{}, errors.New("negative Prefix bits")
		netip.go#L649: 		return Prefix{}, nil
		netip.go#L652: 			return Prefix{}, errors.New("prefix length " + itoa.Itoa(b) + " too large for IPv4")
		netip.go#L657: 			return Prefix{}, errors.New("prefix length " + itoa.Itoa(b) + " too large for IPv6")
		netip.go#L1224: type Prefix struct {
		netip.go#L1240: func PrefixFrom(ip Addr, bits int) Prefix {
		netip.go#L1245: 	return Prefix{
		netip.go#L1252: func (p Prefix) Addr() Addr { return p.ip }
		netip.go#L1257: func (p Prefix) Bits() int { return int(p.bitsPlusOne) - 1 }
		netip.go#L1262: func (p Prefix) IsValid() bool { return p.bitsPlusOne > 0 }
		netip.go#L1264: func (p Prefix) isZero() bool { return p == Prefix{} }
		netip.go#L1267: func (p Prefix) IsSingleIP() bool { return p.IsValid() && p.Bits() == p.ip.BitLen() }
		netip.go#L1276: func ParsePrefix(s string) (Prefix, error) {
		netip.go#L1279: 		return Prefix{}, errors.New("netip.ParsePrefix(" + strconv.Quote(s) + "): no '/'")
		netip.go#L1283: 		return Prefix{}, errors.New("netip.ParsePrefix(" + strconv.Quote(s) + "): " + err.Error())
		netip.go#L1287: 		return Prefix{}, errors.New("netip.ParsePrefix(" + strconv.Quote(s) + "): IPv6 zones cannot be present in a prefix")
		netip.go#L1293: 		return Prefix{}, errors.New("netip.ParsePrefix(" + strconv.Quote(s) + "): bad bits after slash: " + strconv.Quote(bitsStr))
		netip.go#L1300: 		return Prefix{}, errors.New("netip.ParsePrefix(" + strconv.Quote(s) + "): prefix length out of range")
		netip.go#L1307: func MustParsePrefix(s string) Prefix {
		netip.go#L1319: func (p Prefix) Masked() Prefix {
		netip.go#L1331: func (p Prefix) Contains(ip Addr) bool {
		netip.go#L1361: func (p Prefix) Overlaps(o Prefix) bool {
		netip.go#L1397: func (p Prefix) AppendTo(b []byte) []byte {
		netip.go#L1425: func (p Prefix) MarshalText() ([]byte, error) {
		netip.go#L1442: func (p *Prefix) UnmarshalText(text []byte) error {
		netip.go#L1444: 		*p = Prefix{}
		netip.go#L1455: func (p Prefix) MarshalBinary() ([]byte, error) {
		netip.go#L1463: func (p *Prefix) UnmarshalBinary(b []byte) error {
		netip.go#L1477: func (p Prefix) String() string {

	net
		addrselect.go#L219: 	Prefix     netip.Prefix