[−][src]Struct gimli::read::IncompleteLineProgram
A line number program that has not been run to completion.
Implementations
impl<R, Offset> IncompleteLineProgram<R, Offset> where
R: Reader<Offset = Offset>,
Offset: ReaderOffset,
[src]
R: Reader<Offset = Offset>,
Offset: ReaderOffset,
pub fn header(&self) -> &LineProgramHeader<R, Offset>
[src]
Retrieve the LineProgramHeader
for this program.
pub fn rows(self) -> LineRows<R, IncompleteLineProgram<R, Offset>, Offset>
[src]
Construct a new LineRows
for executing this program to iterate
over rows in the line information matrix.
pub fn sequences(
self
) -> Result<(CompleteLineProgram<R, Offset>, Vec<LineSequence<R>>)>
[src]
self
) -> Result<(CompleteLineProgram<R, Offset>, Vec<LineSequence<R>>)>
Execute the line number program, completing the IncompleteLineProgram
into a CompleteLineProgram
and producing an array of sequences within
the line number program that can later be used with
CompleteLineProgram::resume_from
.
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(); println!("There are {} sequences in this line number program", sequences.len());
Trait Implementations
impl<R: Clone, Offset: Clone> Clone for IncompleteLineProgram<R, Offset> where
R: Reader<Offset = Offset>,
Offset: ReaderOffset,
[src]
R: Reader<Offset = Offset>,
Offset: ReaderOffset,
fn clone(&self) -> IncompleteLineProgram<R, Offset>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<R: Debug, Offset: Debug> Debug for IncompleteLineProgram<R, Offset> where
R: Reader<Offset = Offset>,
Offset: ReaderOffset,
[src]
R: Reader<Offset = Offset>,
Offset: ReaderOffset,
impl<R: Eq, Offset: Eq> Eq for IncompleteLineProgram<R, Offset> where
R: Reader<Offset = Offset>,
Offset: ReaderOffset,
[src]
R: Reader<Offset = Offset>,
Offset: ReaderOffset,
impl<R, Offset> LineProgram<R, Offset> for IncompleteLineProgram<R, Offset> where
R: Reader<Offset = Offset>,
Offset: ReaderOffset,
[src]
R: Reader<Offset = Offset>,
Offset: ReaderOffset,
fn header(&self) -> &LineProgramHeader<R, Offset>
[src]
fn add_file(&mut self, file: FileEntry<R, Offset>)
[src]
impl<R: PartialEq, Offset: PartialEq> PartialEq<IncompleteLineProgram<R, Offset>> for IncompleteLineProgram<R, Offset> where
R: Reader<Offset = Offset>,
Offset: ReaderOffset,
[src]
R: Reader<Offset = Offset>,
Offset: ReaderOffset,
fn eq(&self, other: &IncompleteLineProgram<R, Offset>) -> bool
[src]
fn ne(&self, other: &IncompleteLineProgram<R, Offset>) -> bool
[src]
impl<R, Offset> StructuralEq for IncompleteLineProgram<R, Offset> where
R: Reader<Offset = Offset>,
Offset: ReaderOffset,
[src]
R: Reader<Offset = Offset>,
Offset: ReaderOffset,
impl<R, Offset> StructuralPartialEq for IncompleteLineProgram<R, Offset> where
R: Reader<Offset = Offset>,
Offset: ReaderOffset,
[src]
R: Reader<Offset = Offset>,
Offset: ReaderOffset,
Auto Trait Implementations
impl<R, Offset> Send for IncompleteLineProgram<R, Offset> where
Offset: Send,
R: Send,
Offset: Send,
R: Send,
impl<R, Offset> Sync for IncompleteLineProgram<R, Offset> where
Offset: Sync,
R: Sync,
Offset: Sync,
R: Sync,
impl<R, Offset> Unpin for IncompleteLineProgram<R, Offset> where
Offset: Unpin,
R: Unpin,
Offset: Unpin,
R: Unpin,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,