allocative/impls/std/
net.rs1use std::net::IpAddr;
11use std::net::Ipv4Addr;
12use std::net::Ipv6Addr;
13
14use crate::allocative_trait::Allocative;
15use crate::visitor::Visitor;
16
17impl Allocative for IpAddr {
18 fn visit<'a, 'b: 'a>(&self, visitor: &'a mut Visitor<'b>) {
19 visitor.enter_self_sized::<Self>().exit();
20 }
21}
22
23impl Allocative for Ipv4Addr {
24 fn visit<'a, 'b: 'a>(&self, visitor: &'a mut Visitor<'b>) {
25 visitor.enter_self_sized::<Self>().exit();
26 }
27}
28
29impl Allocative for Ipv6Addr {
30 fn visit<'a, 'b: 'a>(&self, visitor: &'a mut Visitor<'b>) {
31 visitor.enter_self_sized::<Self>().exit();
32 }
33}