pub fn print(&self) {
        println!("+-----------------------------------------------+--------------------+");
        println!("| File size\t\t\t\t\t| {:18?} |", self.file_size);
        println!("| Platform\t\t\t\t\t| {:18} |", self.platform_bits);
        println!("| Endianness\t\t\t\t\t| {:18} |", self.endianness);
        println!("| ELF version\t\t\t\t\t| {:18?} |", self.version);
        println!("| Header version\t\t\t\t| {:18?} |", self.header_version);
        println!("| Operating system ABI\t\t\t\t| {:18} |", self.abi);
        println!("| Type\t\t\t\t\t\t| {:18} |", self.elf_type);
        println!("| Instruction set\t\t\t\t| {:18} |", self.instruction_set);
        println!("| Flags\t\t\t\t\t\t| {:18?} |", self.flags);
        println!("| Header size\t\t\t\t\t| {:18?} |", self.header_size);
        println!("| Program entry position\t\t\t| {:18?} |",
                 self.prog_entry_pos);
        println!("| Program header table position\t\t\t| {:18?} |",
                 self.prog_tbl_pos);
        println!("| Section header table position\t\t\t| {:18?} |",
                 self.sec_tbl_pos);
        println!("| Program header entry size\t\t\t| {:18?} |",
                 self.prog_size_hentr);
        println!("| Number of program header entries\t\t| {:18?} |",
                 self.prog_no_hentr);
        println!("| Section header entry size\t\t\t| {:18?} |",
                 self.sec_size_hentr);
        println!("| Number of section header entries\t\t| {:18?} |",
                 self.sec_no_entr);
        println!("| Index of section names in section header\t| {:18?} |",
                 self.sec_tbl_names_pos);
        println!("+-----------------------------------------------+--------------------+");
    }
// Pretty-print struct as a table, mainly for debugging.
Pretty-print struct as a table, mainly for debugging.
Pretty - print struct as a table mainly for debugging .
pub fn print(&self) {
        println!("+-----------------------------------------------+--------------------+");
        println!("| File size\t\t\t\t\t| {:18?} |", self.file_size);
        println!("| Platform\t\t\t\t\t| {:18} |", self.platform_bits);
        println!("| Endianness\t\t\t\t\t| {:18} |", self.endianness);
        println!("| ELF version\t\t\t\t\t| {:18?} |", self.version);
        println!("| Header version\t\t\t\t| {:18?} |", self.header_version);
        println!("| Operating system ABI\t\t\t\t| {:18} |", self.abi);
        println!("| Type\t\t\t\t\t\t| {:18} |", self.elf_type);
        println!("| Instruction set\t\t\t\t| {:18} |", self.instruction_set);
        println!("| Flags\t\t\t\t\t\t| {:18?} |", self.flags);
        println!("| Header size\t\t\t\t\t| {:18?} |", self.header_size);
        println!("| Program entry position\t\t\t| {:18?} |",
                 self.prog_entry_pos);
        println!("| Program header table position\t\t\t| {:18?} |",
                 self.prog_tbl_pos);
        println!("| Section header table position\t\t\t| {:18?} |",
                 self.sec_tbl_pos);
        println!("| Program header entry size\t\t\t| {:18?} |",
                 self.prog_size_hentr);
        println!("| Number of program header entries\t\t| {:18?} |",
                 self.prog_no_hentr);
        println!("| Section header entry size\t\t\t| {:18?} |",
                 self.sec_size_hentr);
        println!("| Number of section header entries\t\t| {:18?} |",
                 self.sec_no_entr);
        println!("| Index of section names in section header\t| {:18?} |",
                 self.sec_tbl_names_pos);
        println!("+-----------------------------------------------+--------------------+");
    }
pub fn print ( & self ) { println ! ( " " ) ; println ! ( " \t \t \t \t \t " self file_size ) ; println ! ( " \t \t \t \t \t " self platform_bits ) ; println ! ( " \t \t \t \t \t " self endianness ) ; println ! ( " \t \t \t \t \t " self version ) ; println ! ( " \t \t \t \t " self header_version ) ; println ! ( " \t \t \t \t " self abi ) ; println ! ( " \t \t \t \t \t \t " self elf_type ) ; println ! ( " \t \t \t \t " self instruction_set ) ; println ! ( " \t \t \t \t \t \t " self flags ) ; println ! ( " \t \t \t \t \t " self header_size ) ; println ! ( " \t \t \t " self prog_entry_pos ) ; println ! ( " \t \t \t " self prog_tbl_pos ) ; println ! ( " \t \t \t " self sec_tbl_pos ) ; println ! ( " \t \t \t " self prog_size_hentr ) ; println ! ( " \t \t " self prog_no_hentr ) ; println ! ( " \t \t \t " self sec_size_hentr ) ; println ! ( " \t \t " self sec_no_entr ) ; println ! ( " \t " self sec_tbl_names_pos ) ; println ! ( " " ) ; }
Pretty-print struct as a table, mainly for debugging.
Pretty - print struct as a table mainly for debugging .
&self