gimli::read::line

Type Alias OpcodesIter

Source
pub type OpcodesIter<R> = LineInstructions<R>;
👎Deprecated: OpcodesIter has been renamed to LineInstructions, use that instead.
Expand description

Deprecated. OpcodesIter has been renamed to LineInstructions.

Aliased Type§

struct OpcodesIter<R> {
    input: R,
}

Fields§

§input: R

Implementations

Source§

impl<R: Reader> LineInstructions<R>

Source§

impl<R: Reader> LineInstructions<R>

Source

pub fn next_instruction( &mut self, header: &LineProgramHeader<R>, ) -> Result<Option<LineInstruction<R>>>

Advance the iterator and return the next instruction.

Returns the newly parsed instruction as Ok(Some(instruction)). Returns Ok(None) when iteration is complete and all instructions have already been parsed and yielded. If an error occurs while parsing the next attribute, then this error is returned as Err(e), and all subsequent calls return Ok(None).

Unfortunately, the header parameter means that this cannot be a FallibleIterator.

Trait Implementations

Source§

impl<R: Clone + Reader> Clone for LineInstructions<R>

Source§

fn clone(&self) -> LineInstructions<R>

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<R: Debug + Reader> Debug for LineInstructions<R>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more