OxL Reference

method Path.toString

The path as text.

Example:

oxl✓ checked in CI
use std.io { Path }

fn main() io {
  print(Path.of("/etc/hosts").toString())
}
Output
/etc/hosts
pub(api) fn toString() -> str

Since. 1.0.0-beta

Returns

str

Effects

none declared (pure unless the body says otherwise)

Defined in: std/io/io.oxl:1073

See also