pub fn into_string_lossy(self) -> Cow<'a, str> {
        match self {
            Self::Src(s) => Cow::Borrowed(s),
            Self::Dst(vec) => Cow::Owned(match String::from_utf8_lossy(&vec) {
                // SAFETY: If a borrowed string slice is returned, the bytes must be valid UTF-8.
                Cow::Borrowed(_) => unsafe { String::from_utf8_unchecked(vec) },
                Cow::Owned(string) => string,
            }),
        }
    }
/// Converts the decoded bytes to a string lossily.
Converts the decoded bytes to a string lossily.
Converts the decoded bytes to a string lossily .
pub fn into_string_lossy(self) -> Cow<'a, str> {
        match self {
            Self::Src(s) => Cow::Borrowed(s),
            Self::Dst(vec) => Cow::Owned(match String::from_utf8_lossy(&vec) {
                // SAFETY: If a borrowed string slice is returned, the bytes must be valid UTF-8.
                Cow::Borrowed(_) => unsafe { String::from_utf8_unchecked(vec) },
                Cow::Owned(string) => string,
            }),
        }
    }
pub fn into_string_lossy ( self ) -> Cow < ' a , str > { match self { Self :: Src ( s ) => Cow :: Borrowed ( s ) , Self :: Dst ( vec ) => Cow :: Owned ( match String :: from_utf8_lossy ( & vec ) { // SAFETY: If a borrowed string slice is returned, the bytes must be valid UTF-8. Cow :: Borrowed ( _ ) => unsafe { String :: from_utf8_unchecked ( vec ) } , Cow :: Owned ( string ) => string , } ) , } }
Converts the decoded bytes to a string lossily.
Converts the decoded bytes to a string lossily .
self
self