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>
impl<R: Reader> LineInstructions<R>
fn remove_trailing( &self, other: &LineInstructions<R>, ) -> Result<LineInstructions<R>>
Source§impl<R: Reader> LineInstructions<R>
impl<R: Reader> LineInstructions<R>
Sourcepub fn next_instruction(
&mut self,
header: &LineProgramHeader<R>,
) -> Result<Option<LineInstruction<R>>>
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>
impl<R: Clone + Reader> Clone for LineInstructions<R>
Source§fn clone(&self) -> LineInstructions<R>
fn clone(&self) -> LineInstructions<R>
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 more