1 2 3 4 5 6 7 8 9
use std::path::Path; use crate::{PathUtf8Encoder, Utf8Encoder}; impl PathUtf8Encoder for Path { fn to_utf8_string(&self) -> String { self.as_os_str().as_encoded_bytes().to_utf8_string() } }