fn write_line(&mut self, string: impl AsRef<str>) -> io::Result<()> {
        self.write_str(string.as_ref())
            .and_then(|_| self.write_str("\n"))
            .map(drop)
    }
/// Writes the given `string` into this writer followed by a newline.
///
/// # Errors
///
/// If this writer fails to write the given `string`.
Writes the given `string` into this writer followed by a newline.
Writes the given ` string ` into this writer followed by a newline .
fn write_line(&mut self, string: impl AsRef<str>) -> io::Result<()> {
        self.write_str(string.as_ref())
            .and_then(|_| self.write_str("\n"))
            .map(drop)
    }
fn write_line ( & mut self , string : impl AsRef < str > ) -> io :: Result < ( ) > { self . write_str ( string . as_ref ( ) ) . and_then ( | _ | self . write_str ( " \n " ) ) . map ( drop ) }
Writes the given `string` into this writer followed by a newline.
Writes the given ` string ` into this writer followed by a newline .
&mut self
string
impl AsRef<str>
&mut self
string
impl AsRef<str>
errors
If this writer fails to write the given `string`.
If this writer fails to write the given ` string ` .