pub trait ToStringLossy: Sealed {
    // Required method
    fn to_string_lossy(&self) -> Cow<'_, str>;
}
Expand description

Lossy string conversion.

Required Methods§

source

fn to_string_lossy(&self) -> Cow<'_, str>

Convert to string, potentially skipping invalid characters.

Implementations on Foreign Types§

source§

impl ToStringLossy for str

source§

fn to_string_lossy(&self) -> Cow<'_, str>

source§

impl ToStringLossy for OsStr

source§

fn to_string_lossy(&self) -> Cow<'_, str>

Implementors§