pub fn write_to_string(reader: impl BufRead, hscale: f64, vscale: f64, padding: Option<usize>) -> io::Result<String> {
    let mut buf = Vec::new();
    write(&mut buf, reader, hscale, vscale, padding)?;
    Ok(String::from_utf8(buf).unwrap())
}
/// Write minimap to a string.
///
/// # Examples
///
/// Basic usage:
///
/// ```
/// use std::{io, io::BufReader};
///
/// let stdin = io::stdin();
/// let s =
///     code_minimap::write_to_string(stdin.lock(), 1.0, 1.0, None).unwrap();
/// print!("{}", s);
/// ```
Write minimap to a string.
Write minimap to a string .
pub fn write_to_string(reader: impl BufRead, hscale: f64, vscale: f64, padding: Option<usize>) -> io::Result<String> {
    let mut buf = Vec::new();
    write(&mut buf, reader, hscale, vscale, padding)?;
    Ok(String::from_utf8(buf).unwrap())
}
pub fn write_to_string ( reader : impl BufRead , hscale : f64 , vscale : f64 , padding : Option < usize > ) -> io :: Result < String > { let mut buf = Vec :: new ( ) ; write ( & mut buf , reader , hscale , vscale , padding ) ? ; Ok ( String :: from_utf8 ( buf ) . unwrap ( ) ) }
Write minimap to a string.
Write minimap to a string .
reader
impl BufRead
hscale
f64
vscale
f64
padding
Option<usize>
reader
impl BufRead
hscale
f64
vscale
f64
padding
Option<usize>
examples
None