trait Net: IpNet {
const ADDR_BITS: u8;
// Required method
fn all() -> Self;
// Provided method
fn host_count_saturating(&self) -> u128 { ... }
}Expand description
Ipv4Net or Ipv6Net - IP-version specific handling
Required Associated Constants§
Required Methods§
Provided Methods§
Sourcefn host_count_saturating(&self) -> u128
fn host_count_saturating(&self) -> u128
How many hosts in this netblock?
If the answer is 2^128, gives 2^128-1 instead.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".