[−][src]Struct gimli::read::LineRows
Executes a LineProgram
to iterate over the rows in the matrix of line number information.
"The hypothetical machine used by a consumer of the line number information to expand the byte-coded instruction stream into a matrix of line number information." -- Section 6.2.1
Methods
impl<R, Program, Offset> LineRows<R, Program, Offset> where
Program: LineProgram<R, Offset>,
R: Reader<Offset = Offset>,
Offset: ReaderOffset,
[src]
Program: LineProgram<R, Offset>,
R: Reader<Offset = Offset>,
Offset: ReaderOffset,
pub fn header(&self) -> &LineProgramHeader<R, Offset>
[src]
Get a reference to the header for this state machine's line number program.
pub fn next_row(
&mut self
) -> Result<Option<(&LineProgramHeader<R, Offset>, &LineRow)>>
[src]
&mut self
) -> Result<Option<(&LineProgramHeader<R, Offset>, &LineRow)>>
Parse and execute the next instructions in the line number program until another row in the line number matrix is computed.
The freshly computed row is returned as Ok(Some((header, row)))
.
If the matrix is complete, and there are no more new rows in the line
number matrix, then Ok(None)
is returned. If there was an error parsing
an instruction, then Err(e)
is returned.
Unfortunately, the references mean that this cannot be a
FallibleIterator
.
Trait Implementations
impl<R: Debug, Program: Debug, Offset: Debug> Debug for LineRows<R, Program, Offset> where
Program: LineProgram<R, Offset>,
R: Reader<Offset = Offset>,
Offset: ReaderOffset,
[src]
Program: LineProgram<R, Offset>,
R: Reader<Offset = Offset>,
Offset: ReaderOffset,
impl<R: Clone, Program: Clone, Offset: Clone> Clone for LineRows<R, Program, Offset> where
Program: LineProgram<R, Offset>,
R: Reader<Offset = Offset>,
Offset: ReaderOffset,
[src]
Program: LineProgram<R, Offset>,
R: Reader<Offset = Offset>,
Offset: ReaderOffset,
Auto Trait Implementations
impl<R, Program, Offset> Send for LineRows<R, Program, Offset> where
Program: Send,
R: Send,
Program: Send,
R: Send,
impl<R, Program, Offset> Sync for LineRows<R, Program, Offset> where
Program: Sync,
R: Sync,
Program: Sync,
R: Sync,
impl<R, Program, Offset> Unpin for LineRows<R, Program, Offset> where
Program: Unpin,
R: Unpin,
Program: Unpin,
R: Unpin,
impl<R, Program, Offset> UnwindSafe for LineRows<R, Program, Offset> where
Program: UnwindSafe,
R: UnwindSafe,
Program: UnwindSafe,
R: UnwindSafe,
impl<R, Program, Offset> RefUnwindSafe for LineRows<R, Program, Offset> where
Program: RefUnwindSafe,
R: RefUnwindSafe,
Program: RefUnwindSafe,
R: RefUnwindSafe,
Blanket Implementations
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> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
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> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,