package ipaddr
- Overview
- No Docs
You can search for identifiers within the package.
in-package search v0.2.0
Install
dune-project
Dependency
Authors
Maintainers
Sources
sha256=9e30433fdb4ca437a6aa8ffb447baca5eba7615fb88e7b0cd8a4b416c3208133
sha512=66a3bedfd91dacd6c1de9ba35abac3ef2ad3c2c8543f7b4e2a0cc6283a8d42138b48d02e904df0232ee9f320920e889bddbbda9a5148c5c6b72fd0164e0c6a34
doc/ipaddr/Ipaddr/Prefix/index.html
Module Ipaddr.PrefixSource
Type of a internet protocol subnet
to_buffer buf subnet writes the text string representation of subnet into buf.
pp f subnet outputs a human-readable representation of subnet to the formatter f.
of_string_exn cidr is the subnet prefix represented by the CIDR string, cidr. Raises Parse_error if cidr is not a valid representation of a CIDR notation routing prefix.
Same as of_string_exn but returns a result type instead of raising an exception.
Same as of_string_exn but takes as an extra argument the offset into the string for reading.
v4_of_v6 ipv6 is the IPv4 representation of the IPv6 subnet ipv6. If ipv6 is not an IPv4-mapped subnet, None is returned.
to_v4 subnet is the IPv4 representation of subnet.
v6_of_v4 ipv4 is the IPv6 representation of the IPv4 subnet ipv4.
to_v6 subnet is the IPv6 representation of subnet.
subset ~subnet ~network checks whether subnet is contained within network.
hosts cidr is the sequence of host addresses in this cidr. By default, the network and broadcast addresses are omitted for IPv4. In the case of IPv6, the Subnet-Router anycast address is omitted by default. This can be changed by setting usable to false.
subnets n cidr is the sequence of subnets of cidr with a prefix length of n.
include Map.OrderedType with type t := t
A total ordering function over the keys. This is a two-argument function f such that f e1 e2 is zero if the keys e1 and e2 are equal, f e1 e2 is strictly negative if e1 is smaller than e2, and f e1 e2 is strictly positive if e1 is greater than e2. Example: a suitable ordering function is the generic structural comparison function Stdlib.compare.