pub type CompleteLineNumberProgram<R, Offset> = CompleteLineProgram<R, Offset>;
👎Deprecated: CompleteLineNumberProgram has been renamed to CompleteLineProgram, use that instead.
Expand description
Deprecated. CompleteLineNumberProgram
has been renamed to CompleteLineProgram
.
Aliased Type§
struct CompleteLineNumberProgram<R, Offset> { /* private fields */ }
Implementations
Source§impl<R, Offset> CompleteLineProgram<R, Offset>where
R: Reader<Offset = Offset>,
Offset: ReaderOffset,
impl<R, Offset> CompleteLineProgram<R, Offset>where
R: Reader<Offset = Offset>,
Offset: ReaderOffset,
Sourcepub fn header(&self) -> &LineProgramHeader<R, Offset>
pub fn header(&self) -> &LineProgramHeader<R, Offset>
Retrieve the LineProgramHeader
for this program.
Sourcepub fn resume_from<'program>(
&'program self,
sequence: &LineSequence<R>,
) -> LineRows<R, &'program CompleteLineProgram<R, Offset>, Offset>
pub fn resume_from<'program>( &'program self, sequence: &LineSequence<R>, ) -> LineRows<R, &'program CompleteLineProgram<R, Offset>, Offset>
Construct a new LineRows
for executing the subset of the line
number program identified by ‘sequence’ and generating the line information
matrix.
use gimli::{IncompleteLineProgram, EndianSlice, NativeEndian};
fn get_line_number_program<'a>() -> IncompleteLineProgram<EndianSlice<'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();
for sequence in &sequences {
let mut sm = program.resume_from(sequence);
}
Trait Implementations
Source§impl<R, Offset> Clone for CompleteLineProgram<R, Offset>
impl<R, Offset> Clone for CompleteLineProgram<R, Offset>
Source§fn clone(&self) -> CompleteLineProgram<R, Offset>
fn clone(&self) -> CompleteLineProgram<R, Offset>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<R, Offset> Debug for CompleteLineProgram<R, Offset>
impl<R, Offset> Debug for CompleteLineProgram<R, Offset>
Source§impl<R, Offset> PartialEq for CompleteLineProgram<R, Offset>
impl<R, Offset> PartialEq for CompleteLineProgram<R, Offset>
Source§fn eq(&self, other: &CompleteLineProgram<R, Offset>) -> bool
fn eq(&self, other: &CompleteLineProgram<R, Offset>) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.