pub fn bytes_as_string(chunk: Rc<Chunk>) -> String {
        let mut iter = chunk.bytes.iter();
        let mut result = String::new();

        'outer: loop {
            for i in 1..=16 {
                match iter.next() {
                    Some(byte) => result += &format!("{:02x}", byte),
                    None => break 'outer,
                }
                if i < 16 {
                    result += " ";

                    if i % 4 == 0 {
                        result += " ";
                    }
                }
            }
            result += "\n";
        }

        result
    }
/// Returns a [String] displaying the instructions contained in the compiled [Chunk]
Returns a [String] displaying the instructions contained in the compiled [Chunk]
Returns a [ String ] displaying the instructions contained in the compiled [ Chunk ]
pub fn bytes_as_string(chunk: Rc<Chunk>) -> String {
        let mut iter = chunk.bytes.iter();
        let mut result = String::new();
        'outer: loop {
            for i in 1..=16 {
                match iter.next() {
                    Some(byte) => result += &format!("{:02x}", byte),
                    None => break 'outer,
                }
                if i < 16 {
                    result += " ";
                    if i % 4 == 0 {
                        result += " ";
                    }
                }
            }
            result += "\n";
        }
        result
    }
pub fn bytes_as_string ( chunk : Rc < Chunk > ) -> String { let mut iter = chunk . bytes . iter ( ) ; let mut result = String :: new ( ) ; ' outer : loop { for i in 1 ..= 16 { match iter . next ( ) { Some ( byte ) => result += & format ! ( " " byte ) , None => break ' outer , } if i < 16 { result += " " ; if i % 4 == 0 { result += " " ; } } } result += " \n " ; } result }
Returns a [String] displaying the instructions contained in the compiled [Chunk]
Returns a [ String ] displaying the instructions contained in the compiled [ Chunk ]
chunk
Rc<Chunk>
chunk
Rc<Chunk>