fn read_text_line_lossy(&mut self, buf: &mut TextString) -> io::Result<usize> {
        let len = self.read_line(&mut buf.0)?;

        if let Cow::Owned(text) = TextString::from_text_lossy(&buf.0) {
            buf.0 = text.0;
        }

        Ok(len)
    }
/// Read all bytes until a newline (the `0xA` byte) is reached, and append
/// them to the provided buffer, similar to [`BufRead::read_line`],
/// converting the input to Basic Text using lossy conversions if needed.
///
/// Basic Text streams always end with a newline, so the returned string
/// will always have a trailing newline.
///
/// This function is blocking and should be used carefully: it is possible
/// for an attacker to continuously send bytes without ever sending a
/// newline or ending the stream.
Read all bytes until a newline (the `0xA` byte) is reached, and append
them to the provided buffer, similar to [`BufRead::read_line`],
converting the input to Basic Text using lossy conversions if needed.

Basic Text streams always end with a newline, so the returned string
will always have a trailing newline.

This function is blocking and should be used carefully: it is possible
for an attacker to continuously send bytes without ever sending a
newline or ending the stream.
Read all bytes until a newline ( the ` 0xA ` byte ) is reached and append them to the provided buffer similar to [ ` BufRead :: read_line ` ] converting the input to Basic Text using lossy conversions if needed . Basic Text streams always end with a newline so the returned string will always have a trailing newline . This function is blocking and should be used carefully : it is possible for an attacker to continuously send bytes without ever sending a newline or ending the stream .
fn read_text_line_lossy(&mut self, buf: &mut TextString) -> io::Result<usize> {
        let len = self.read_line(&mut buf.0)?;
        if let Cow::Owned(text) = TextString::from_text_lossy(&buf.0) {
            buf.0 = text.0;
        }
        Ok(len)
    }
fn read_text_line_lossy ( & mut self , buf : & mut TextString ) -> io :: Result < usize > { let len = self . read_line ( & mut buf . 0 ) ? ; if let Cow :: Owned ( text ) = TextString :: from_text_lossy ( & buf . 0 ) { buf . 0 = text . 0 ; } Ok ( len ) }
Read all bytes until a newline (the `0xA` byte) is reached, and append
them to the provided buffer, similar to [`BufRead::read_line`],
converting the input to Basic Text using lossy conversions if needed.
Read all bytes until a newline ( the ` 0xA ` byte ) is reached and append them to the provided buffer similar to [ ` BufRead :: read_line ` ] converting the input to Basic Text using lossy conversions if needed .
&mut self
buf
&mut TextString