ps-str 0.1.0-5

String transcoding library
Documentation
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()
    }
}