Trait ToStringLossy

Source
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§