pub struct Subnet(/* private fields */);Expand description
A validated private CIDR subnet (e.g. 10.0.0.0/8).
Guarantees:
- Valid IPv4 CIDR notation with explicit prefix
- No non-zero host bits
- IP is in a private range (10/8, 172.16/12, 192.168/16)
Implementations§
Trait Implementations§
impl Eq for Subnet
impl StructuralPartialEq for Subnet
Auto Trait Implementations§
impl Freeze for Subnet
impl RefUnwindSafe for Subnet
impl Send for Subnet
impl Sync for Subnet
impl Unpin for Subnet
impl UnsafeUnpin for Subnet
impl UnwindSafe for Subnet
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more