AssertUtf8

Trait AssertUtf8 

Source
pub trait AssertUtf8 {
    type Output;

    // Required method
    fn assert_utf8(self) -> Self::Output;
}

Required Associated Types§

Required Methods§

Source

fn assert_utf8(self) -> Self::Output

Implementations on Foreign Types§

Source§

impl AssertUtf8 for PathBuf

Source§

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.

Source§

type Output = Utf8PathBuf

Source§

impl<'a> AssertUtf8 for &'a Path

Source§

fn assert_utf8(self) -> Self::Output

Assert self is a valid UTF-8 Path and convert to Utf8Path

§Panics

Panics if self is not a valid UTF-8 path.

Source§

type Output = &'a Utf8Path

Implementors§