pub trait AssertUtf8 {
type Output;
// Required method
fn assert_utf8(self) -> Self::Output;
}Required Associated Types§
Required Methods§
fn assert_utf8(self) -> Self::Output
Implementations on Foreign Types§
Source§impl AssertUtf8 for PathBuf
impl AssertUtf8 for PathBuf
Source§fn assert_utf8(self) -> Self::Output
fn assert_utf8(self) -> Self::Output
Assert self is a valid UTF-8 PathBuf and convert to Utf8PathBuf
§Panics
Panics if self is not a valid UTF-8 path.