ReadonlyfamilyAddress family of the network.
ReadonlysizeSize of the network (prefix length).
Assigns an address to the current network, effectively combining the network with the given address.
The other IPv6 address to combine with (e.g., ::100)
The combined IPv6 address as a CoreResult containing either the resulting Ipv6Addr or a RangeError if the address does not fit within the host portion of the network.
Assigns an address to the current network, effectively combining the network with the given address.
The other IPv6 address to combine with (e.g., ::100)
The combined IPv6 address as an Ipv6Addr instance. (e.g., combining 2001:db8::/64 with ::100 would result in 2001:db8::100)
Checks if the current network contains the given child network.
The child network to check for containment.
true if the current network contains the child network, false otherwise.
Checks if the current network is a subnet of the given parent network.
The parent network to check against.
true if the current network is a subnet of the parent network, false otherwise.
StaticfromCreates an instance of Ipv6Net from a string representation.
The string representation of the IPv6 network, e.g., 2001:db8::/64 or full interface address with size.
A CoreResult containing the instance of Ipv6Net if successful, or a TypeError if the input is invalid.
StaticfromA CoreResult containing the instance of Ipv6Net if successful, or a RangeError if the network size is invalid.
StaticfromStaticfrom
Represents an IPv6 network.
Example
Since
v0.1.2