pub fn new(reader: Box<dyn BufRead>) -> Self {
        let mut ret = Self {
            reader,
            buffer: String::with_capacity(1024), //fixme: Modifyable capacity?
            offset: Offset {
                offset: 0,
                row: 1,
                col: 1,
            },
            eof: false,
        };

        ret.peek(); // Peek one character to find out if we're immediately EOF
        ret
    }
/// Creates a new reader on buffer read.
Creates a new reader on buffer read.
Creates a new reader on buffer read .
pub fn new(reader: Box<dyn BufRead>) -> Self {
        let mut ret = Self {
            reader,
            buffer: String::with_capacity(1024), //fixme: Modifyable capacity?
            offset: Offset {
                offset: 0,
                row: 1,
                col: 1,
            },
            eof: false,
        };
        ret.peek(); // Peek one character to find out if we're immediately EOF
        ret
    }
pub fn new ( reader : Box < dyn BufRead > ) -> Self { let mut ret = Self { reader , buffer : String :: with_capacity ( 1024 ) , //fixme: Modifyable capacity? offset : Offset { offset : 0 , row : 1 , col : 1 , } , eof : false , } ; ret . peek ( ) ; // Peek one character to find out if we're immediately EOF ret }
Creates a new reader on buffer read.
Creates a new reader on buffer read .
reader
Box<dyn BufRead>
reader
Box<dyn BufRead>