Struct gimli::read::CompleteLineProgram
source · pub struct CompleteLineProgram<R, Offset = <R as Reader>::Offset>where
R: Reader<Offset = Offset>,
Offset: ReaderOffset,{ /* private fields */ }
Expand description
A line number program that has previously been run to completion.
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>where
R: Reader<Offset = Offset> + Clone,
Offset: ReaderOffset + Clone,
impl<R, Offset> Clone for CompleteLineProgram<R, Offset>where R: Reader<Offset = Offset> + Clone, Offset: ReaderOffset + Clone,
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>where
R: Reader<Offset = Offset> + Debug,
Offset: ReaderOffset + Debug,
impl<R, Offset> Debug for CompleteLineProgram<R, Offset>where R: Reader<Offset = Offset> + Debug, Offset: ReaderOffset + Debug,
source§impl<'program, R, Offset> LineProgram<R, Offset> for &'program CompleteLineProgram<R, Offset>where
R: Reader<Offset = Offset>,
Offset: ReaderOffset,
impl<'program, R, Offset> LineProgram<R, Offset> for &'program CompleteLineProgram<R, Offset>where R: Reader<Offset = Offset>, Offset: ReaderOffset,
source§impl<R, Offset> PartialEq<CompleteLineProgram<R, Offset>> for CompleteLineProgram<R, Offset>where
R: Reader<Offset = Offset> + PartialEq,
Offset: ReaderOffset + PartialEq,
impl<R, Offset> PartialEq<CompleteLineProgram<R, Offset>> for CompleteLineProgram<R, Offset>where R: Reader<Offset = Offset> + PartialEq, Offset: ReaderOffset + PartialEq,
source§fn eq(&self, other: &CompleteLineProgram<R, Offset>) -> bool
fn eq(&self, other: &CompleteLineProgram<R, Offset>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl<R, Offset> Eq for CompleteLineProgram<R, Offset>where R: Reader<Offset = Offset> + Eq, Offset: ReaderOffset + Eq,
impl<R, Offset> StructuralEq for CompleteLineProgram<R, Offset>where R: Reader<Offset = Offset>, Offset: ReaderOffset,
impl<R, Offset> StructuralPartialEq for CompleteLineProgram<R, Offset>where R: Reader<Offset = Offset>, Offset: ReaderOffset,
Auto Trait Implementations§
impl<R, Offset> RefUnwindSafe for CompleteLineProgram<R, Offset>where Offset: RefUnwindSafe, R: RefUnwindSafe,
impl<R, Offset> Send for CompleteLineProgram<R, Offset>where Offset: Send, R: Send,
impl<R, Offset> Sync for CompleteLineProgram<R, Offset>where Offset: Sync, R: Sync,
impl<R, Offset> Unpin for CompleteLineProgram<R, Offset>where Offset: Unpin, R: Unpin,
impl<R, Offset> UnwindSafe for CompleteLineProgram<R, Offset>where Offset: UnwindSafe, R: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more