Struct gimli::CfiEntriesIter [] [src]

pub struct CfiEntriesIter<'bases, Section, R> where
    R: Reader,
    Section: UnwindSection<R>, 
{ /* fields omitted */ }

An iterator over CIE and FDE entries in a .debug_frame or .eh_frame section.

Some pointers may be encoded relative to various base addresses. Use the BaseAddresses parameter to provide them. By default, none are provided. If a relative pointer is encountered for a base address that is unknown, an Err will be returned and iteration will abort.

Can be used with FallibleIterator.

use gimli::{BaseAddresses, EhFrame, EndianSlice, NativeEndian, UnwindSection};

let eh_frame = EhFrame::new(read_eh_frame_somehow(), NativeEndian);

// Provide base addresses for relative pointers.
let bases = BaseAddresses::default()
    .set_cfi(address_of_cfi_section_in_memory)
    .set_text(address_of_text_section_in_memory)
    .set_data(address_of_data_section_in_memory);

let mut entries = eh_frame.entries(&bases);

while let Some(entry) = try!(entries.next()) {
    do_stuff_with(entry)
}

Methods

impl<'bases, Section, R> CfiEntriesIter<'bases, Section, R> where
    R: Reader,
    Section: UnwindSection<R>, 
[src]

[src]

Advance the iterator to the next entry.

Trait Implementations

impl<'bases, Section: Clone, R: Clone> Clone for CfiEntriesIter<'bases, Section, R> where
    R: Reader,
    Section: UnwindSection<R>, 
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl<'bases, Section: Debug, R: Debug> Debug for CfiEntriesIter<'bases, Section, R> where
    R: Reader,
    Section: UnwindSection<R>, 
[src]

[src]

Formats the value using the given formatter. Read more

impl<'bases, Section, R> FallibleIterator for CfiEntriesIter<'bases, Section, R> where
    R: Reader,
    Section: UnwindSection<R>, 
[src]

The type being iterated over.

The error type.

[src]

Advances the iterator and returns the next value. Read more

[src]

Returns bounds on the remaining length of the iterator. Read more

[src]

Determines if all elements of this iterator match a predicate.

[src]

Returns an iterator which applies a fallible transform to the elements of the underlying iterator. Read more

[src]

Determines if any element of this iterator matches a predicate.

Important traits for &'a mut I
[src]

Borrow an iterator rather than consuming it. Read more

[src]

Returns an iterator which yields the elements of this iterator followed by another. Read more

[src]

Returns an iterator which clones all of its elements.

[src]

Consumes the iterator, returning the number of remaining items.

[src]

Transforms the iterator into a collection. Read more

[src]

Returns an iterator which yields the current iteration count as well as the value. Read more

[src]

Returns an iterator which uses a predicate to determine which values should be yielded. Read more

[src]

Returns an iterator which both filters and maps.

[src]

Returns the first element of the iterator that matches a predicate.

[src]

Returns an iterator which yields this iterator's elements and ends after the first Ok(None). Read more

[src]

Applies a function over the elements of the iterator, producing a single final value. Read more

Important traits for Iterator<I>
[src]

Returns a normal (non-fallible) iterator over Result<Item, Error>.

[src]

Returns the last element of the iterator.

[src]

Returns an iterator which applies a transform to the elements of the underlying iterator. Read more

[src]

Returns an iterator which applies a transform to the errors of the underlying iterator. Read more

[src]

Returns the maximal element of the iterator.

[src]

Returns the element of the iterator which gives the maximum value from the function. Read more

[src]

Returns the minimal element of the iterator.

[src]

Returns the element of the iterator which gives the minimum value from the function. Read more

[src]

Returns the nth element of the iterator.

[src]

Returns an iterator that can peek at the next element without consuming it. Read more

[src]

Returns the position of the first element of this iterator that matches a predicate. Read more

[src]

Returns an iterator that yields this iterator's items in the opposite order. Read more

[src]

Returns an iterator that yields only the first n values of this iterator. Read more

[src]

Returns an iterator that yields pairs of this iterator's and another iterator's values. Read more

[src]

Lexicographically compares the elements of this iterator to that of another. Read more

[src]

Lexicographically compares the elements of this iterator to that of another. Read more

[src]

Determines if the elements of this iterator are equal to those of another. Read more

[src]

Determines if the elements of this iterator are not equal to those of another. Read more

[src]

Determines if the elements of this iterator are lexicographically less than those of another. Read more

[src]

Determines if the elements of this iterator are lexicographically less than or equal to those of another. Read more

[src]

Determines if the elements of this iterator are lexicographically greater than those of another. Read more

[src]

Determines if the elements of this iterator are lexicographically greater than or equal to those of another. Read more

Auto Trait Implementations

impl<'bases, Section, R> !Send for CfiEntriesIter<'bases, Section, R>

impl<'bases, Section, R> !Sync for CfiEntriesIter<'bases, Section, R>