ReadonlyfamilyAddress family of the network.
ReadonlysizeSize of the network (subnet mask length).
Assigns an address to the current network, effectively combining the network with the given address.
The other IPv4 address to combine with (e.g., 0.0.0.100)
The combined IPv4 address as a CoreResult containing either the resulting Ipv4Addr 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 IPv4 address to combine with (e.g., 0.0.0.100)
The combined IPv4 address as an Ipv4Addr instance. (e.g., combining 192.168.0.0/24 with 0.0.0.100 would result in 192.168.0.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 equal to another network.
Optionalother: unknown
The other network to compare with.
true if the networks are equal, otherwise false.
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 IPv4 network from its string representation.
The string representation of the IPv4 network, e.g., 192.168.0.1/24.
A CoreResult containing the parsed Ipv4Net instance or a TypeError if parsing fails.
StaticfromCreates an IPv4 network from address and a subnet mask length.
A CoreResult containing the parsed Ipv4Net instance or a RangeError if the network size is invalid.
StaticfromStaticfrom
Represents an IPv4 network.
Example
Since
v0.1.2