Struct gimli::IncompleteLineNumberProgram [] [src]

pub struct IncompleteLineNumberProgram<R: Reader> { /* fields omitted */ }

A line number program that has not been run to completion.

Methods

impl<R: Reader> IncompleteLineNumberProgram<R>
[src]

Retrieve the LineNumberProgramHeader for this program.

Construct a new StateMachine for executing line programs and generating the line information matrix.

Execute the line number program, completing the IncompleteLineNumberProgram into a CompleteLineNumberProgram and producing an array of sequences within the line number program that can later be used with CompleteLineNumberProgram::resume_from.

use gimli::{IncompleteLineNumberProgram, EndianBuf, NativeEndian};

fn get_line_number_program<'a>() -> IncompleteLineNumberProgram<EndianBuf<'a, NativeEndian>> {
    // Get a line number program from some offset in a
    // `.debug_line` section...
}

let program = get_line_number_program();
let (program, sequences) = program.sequences().unwrap();
println!("There are {} sequences in this line number program", sequences.len());

Trait Implementations

impl<R: Reader> LineNumberProgram<R> for IncompleteLineNumberProgram<R>
[src]

Get a reference to the held LineNumberProgramHeader.

Add a file to the file table if necessary.

impl<R: Clone + Reader> Clone for IncompleteLineNumberProgram<R>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<R: Debug + Reader> Debug for IncompleteLineNumberProgram<R>
[src]

Formats the value using the given formatter.

impl<R: Eq + Reader> Eq for IncompleteLineNumberProgram<R>
[src]

impl<R: PartialEq + Reader> PartialEq for IncompleteLineNumberProgram<R>
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.