Trait AsEscapedString

Source
pub trait AsEscapedString {
    type ViewableType<'t>
       where Self: 't;

    // Required method
    fn as_escaped_string<'s>(&'s self) -> Self::ViewableType<'s>;
}

Required Associated Types§

Source

type ViewableType<'t> where Self: 't

Required Methods§

Source

fn as_escaped_string<'s>(&'s self) -> Self::ViewableType<'s>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl AsEscapedString for String

Source§

impl AsEscapedString for PathBuf

Source§

impl<'u> AsEscapedString for &'u str

Source§

type ViewableType<'t> = DebugForDisplay<&'t str> where Self: 't

Source§

fn as_escaped_string<'s>(&'s self) -> Self::ViewableType<'s>

Source§

impl<'u> AsEscapedString for &'u Arc<Path>

Source§

type ViewableType<'t> = DebugForDisplay<&'t Path> where Self: 't

Source§

fn as_escaped_string<'s>(&'s self) -> Self::ViewableType<'s>

Source§

impl<'u> AsEscapedString for &'u Path

Source§

type ViewableType<'t> = DebugForDisplay<&'t Path> where Self: 't

Source§

fn as_escaped_string<'s>(&'s self) -> Self::ViewableType<'s>

Implementors§