Rename some ipaddr methods

This commit is contained in:
lumi 2025-06-25 01:36:52 +10:00
parent 2352cb0225
commit 69ac13ea47
Signed by: luaneko
GPG Key ID: 406809B8763FF07A

View File

@ -239,7 +239,7 @@ impl lb_ipaddr {
}
/// See [`Ipv4Addr::to_ipv6_compatible`].
pub extern "Lua-C" fn compat_v6(&self) -> Self {
pub extern "Lua-C" fn to_v6_compat(&self) -> Self {
match self.0 {
IpAddr::V4(v4) => Self(v4.to_ipv6_compatible().into()),
IpAddr::V6(_) => *self,
@ -247,7 +247,7 @@ impl lb_ipaddr {
}
/// See [`Ipv4Addr::to_ipv6_mapped`].
pub extern "Lua-C" fn mapped_v6(&self) -> Self {
pub extern "Lua-C" fn to_v6_mapped(&self) -> Self {
match self.0 {
IpAddr::V4(v4) => Self(v4.to_ipv6_mapped().into()),
IpAddr::V6(_) => *self,