fn read1(handle: &mut Read) -> Option<u8> {
            let mut buffer: [u8; 1] = [0];
            match handle.take(1).read(&mut buffer) {
                Ok(1) => Some(buffer[0]),
                Ok(0) => None,
                Ok(_) | Err(_) => panic!("error"),
            }
        }
// read a single byte from handle
read a single byte from handle
read a single byte from handle
fn read1(handle: &mut Read) -> Option<u8> {
            let mut buffer: [u8; 1] = [0];
            match handle.take(1).read(&mut buffer) {
                Ok(1) => Some(buffer[0]),
                Ok(0) => None,
                Ok(_) | Err(_) => panic!("error"),
            }
        }
fn read1 ( handle : & mut Read ) -> Option < u8 > { let mut buffer : [ u8 ; 1 ] = [ 0 ] ; match handle . take ( 1 ) . read ( & mut buffer ) { Ok ( 1 ) => Some ( buffer [ 0 ] ) , Ok ( 0 ) => None , Ok ( _ ) | Err ( _ ) => panic ! ( " " ) , } }
read a single byte from handle
read a single byte from handle
handle
&mut Read