Skip to main content

ps_str/path_utf8_encoder/variants/
path.rs

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