Struct gimli::read::IncompleteLineProgram
source · [−]pub struct IncompleteLineProgram<R, Offset = <R as Reader>::Offset> where
R: Reader<Offset = Offset>,
Offset: ReaderOffset, { /* private fields */ }
Expand description
A line number program that has not been run to completion.
Implementations
sourceimpl<R, Offset> IncompleteLineProgram<R, Offset> where
R: Reader<Offset = Offset>,
Offset: ReaderOffset,
impl<R, Offset> IncompleteLineProgram<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 rows(self) -> LineRows<R, IncompleteLineProgram<R, Offset>, Offset>
pub fn rows(self) -> LineRows<R, IncompleteLineProgram<R, Offset>, Offset>
Construct a new LineRows
for executing this program to iterate
over rows in the line information matrix.
sourcepub fn sequences(
self
) -> Result<(CompleteLineProgram<R, Offset>, Vec<LineSequence<R>>)>
pub fn sequences(
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
sourceimpl<R: Clone, Offset: Clone> Clone for IncompleteLineProgram<R, Offset> where
R: Reader<Offset = Offset>,
Offset: ReaderOffset,
impl<R: Clone, Offset: Clone> Clone for IncompleteLineProgram<R, Offset> where
R: Reader<Offset = Offset>,
Offset: ReaderOffset,
sourcefn clone(&self) -> IncompleteLineProgram<R, Offset>
fn clone(&self) -> IncompleteLineProgram<R, Offset>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl<R: Debug, Offset: Debug> Debug for IncompleteLineProgram<R, Offset> where
R: Reader<Offset = Offset>,
Offset: ReaderOffset,
impl<R: Debug, Offset: Debug> Debug for IncompleteLineProgram<R, Offset> where
R: Reader<Offset = Offset>,
Offset: ReaderOffset,
sourceimpl<R, Offset> LineProgram<R, Offset> for IncompleteLineProgram<R, Offset> where
R: Reader<Offset = Offset>,
Offset: ReaderOffset,
impl<R, Offset> LineProgram<R, Offset> for IncompleteLineProgram<R, Offset> where
R: Reader<Offset = Offset>,
Offset: ReaderOffset,
sourceimpl<R: PartialEq, Offset: PartialEq> PartialEq<IncompleteLineProgram<R, Offset>> for IncompleteLineProgram<R, Offset> where
R: Reader<Offset = Offset>,
Offset: ReaderOffset,
impl<R: PartialEq, Offset: PartialEq> PartialEq<IncompleteLineProgram<R, Offset>> for IncompleteLineProgram<R, Offset> where
R: Reader<Offset = Offset>,
Offset: ReaderOffset,
sourcefn eq(&self, other: &IncompleteLineProgram<R, Offset>) -> bool
fn eq(&self, other: &IncompleteLineProgram<R, Offset>) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &IncompleteLineProgram<R, Offset>) -> bool
fn ne(&self, other: &IncompleteLineProgram<R, Offset>) -> bool
This method tests for !=
.
impl<R: Eq, Offset: Eq> Eq for IncompleteLineProgram<R, Offset> where
R: Reader<Offset = Offset>,
Offset: ReaderOffset,
impl<R, Offset> StructuralEq for IncompleteLineProgram<R, Offset> where
R: Reader<Offset = Offset>,
Offset: ReaderOffset,
impl<R, Offset> StructuralPartialEq for IncompleteLineProgram<R, Offset> where
R: Reader<Offset = Offset>,
Offset: ReaderOffset,
Auto Trait Implementations
impl<R, Offset> RefUnwindSafe for IncompleteLineProgram<R, Offset> where
Offset: RefUnwindSafe,
R: RefUnwindSafe,
impl<R, Offset> Send for IncompleteLineProgram<R, Offset> where
Offset: Send,
R: Send,
impl<R, Offset> Sync for IncompleteLineProgram<R, Offset> where
Offset: Sync,
R: Sync,
impl<R, Offset> Unpin for IncompleteLineProgram<R, Offset> where
Offset: Unpin,
R: Unpin,
impl<R, Offset> UnwindSafe for IncompleteLineProgram<R, Offset> where
Offset: UnwindSafe,
R: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more