OxL Reference

method IpAddr.toString

The canonical text of the address.

Example:

oxl✓ checked in CI
use std.net { IpAddr }

fn main() io {
  print(IpAddr.loopbackV6().toString())
}
Output
::1
pub(api) fn toString() -> str

Since. 1.0.0-beta

Returns

str

Effects

none declared (pure unless the body says otherwise)

Defined in: std/net/net.oxl:247

See also