Struct gimli::read::ArangeHeaderIter
source · [−]pub struct ArangeHeaderIter<R: Reader> { /* private fields */ }
Expand description
An iterator over the headers of a .debug_aranges
section.
Implementations
sourceimpl<R: Reader> ArangeHeaderIter<R>
impl<R: Reader> ArangeHeaderIter<R>
sourcepub fn next(&mut self) -> Result<Option<ArangeHeader<R>>>
pub fn next(&mut self) -> Result<Option<ArangeHeader<R>>>
Advance the iterator to the next header.
Trait Implementations
sourceimpl<R: Clone + Reader> Clone for ArangeHeaderIter<R> where
R::Offset: Clone,
impl<R: Clone + Reader> Clone for ArangeHeaderIter<R> where
R::Offset: Clone,
sourcefn clone(&self) -> ArangeHeaderIter<R>
fn clone(&self) -> ArangeHeaderIter<R>
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: Reader> FallibleIterator for ArangeHeaderIter<R>
impl<R: Reader> FallibleIterator for ArangeHeaderIter<R>
type Item = ArangeHeader<R>
type Item = ArangeHeader<R>
The type being iterated over.
sourcefn next(&mut self) -> Result<Option<Self::Item>, Self::Error>
fn next(&mut self) -> Result<Option<Self::Item>, Self::Error>
Advances the iterator and returns the next value. Read more
sourcefn size_hint(&self) -> (usize, Option<usize>)
fn size_hint(&self) -> (usize, Option<usize>)
Returns bounds on the remaining length of the iterator. Read more
sourcefn count(self) -> Result<usize, Self::Error>
fn count(self) -> Result<usize, Self::Error>
Consumes the iterator, returning the number of remaining items.
sourcefn last(self) -> Result<Option<Self::Item>, Self::Error>
fn last(self) -> Result<Option<Self::Item>, Self::Error>
Returns the last element of the iterator.
sourcefn nth(&mut self, n: usize) -> Result<Option<Self::Item>, Self::Error>
fn nth(&mut self, n: usize) -> Result<Option<Self::Item>, Self::Error>
Returns the n
th element of the iterator.
sourcefn step_by(self, step: usize) -> StepBy<Self>
fn step_by(self, step: usize) -> StepBy<Self>
Returns an iterator starting at the same point, but stepping by the given amount at each iteration. Read more
sourcefn chain<I>(self, it: I) -> Chain<Self, I> where
I: IntoFallibleIterator<Item = Self::Item, Error = Self::Error>,
fn chain<I>(self, it: I) -> Chain<Self, I> where
I: IntoFallibleIterator<Item = Self::Item, Error = Self::Error>,
Returns an iterator which yields the elements of this iterator followed by another. Read more
sourcefn zip<I>(
self,
o: I
) -> Zip<Self, <I as IntoFallibleIterator>::IntoFallibleIter> where
I: IntoFallibleIterator<Error = Self::Error>,
fn zip<I>(
self,
o: I
) -> Zip<Self, <I as IntoFallibleIterator>::IntoFallibleIter> where
I: IntoFallibleIterator<Error = Self::Error>,
Returns an iterator that yields pairs of this iterator’s and another iterator’s values. Read more
sourcefn map<F, B>(self, f: F) -> Map<Self, F> where
F: FnMut(Self::Item) -> Result<B, Self::Error>,
fn map<F, B>(self, f: F) -> Map<Self, F> where
F: FnMut(Self::Item) -> Result<B, Self::Error>,
Returns an iterator which applies a fallible transform to the elements of the underlying iterator. Read more
sourcefn for_each<F>(self, f: F) -> Result<(), Self::Error> where
F: FnMut(Self::Item) -> Result<(), Self::Error>,
fn for_each<F>(self, f: F) -> Result<(), Self::Error> where
F: FnMut(Self::Item) -> Result<(), Self::Error>,
Calls a fallible closure on each element of an iterator.
sourcefn filter<F>(self, f: F) -> Filter<Self, F> where
F: FnMut(&Self::Item) -> Result<bool, Self::Error>,
fn filter<F>(self, f: F) -> Filter<Self, F> where
F: FnMut(&Self::Item) -> Result<bool, Self::Error>,
Returns an iterator which uses a predicate to determine which values should be yielded. The predicate may fail; such failures are passed to the caller. Read more
sourcefn filter_map<B, F>(self, f: F) -> FilterMap<Self, F> where
F: FnMut(Self::Item) -> Result<Option<B>, Self::Error>,
fn filter_map<B, F>(self, f: F) -> FilterMap<Self, F> where
F: FnMut(Self::Item) -> Result<Option<B>, Self::Error>,
Returns an iterator which both filters and maps. The closure may fail; such failures are passed along to the consumer. Read more
sourcefn enumerate(self) -> Enumerate<Self>
fn enumerate(self) -> Enumerate<Self>
Returns an iterator which yields the current iteration count as well as the value. Read more
sourcefn peekable(self) -> Peekable<Self>
fn peekable(self) -> Peekable<Self>
Returns an iterator that can peek at the next element without consuming it. Read more
sourcefn skip_while<P>(self, predicate: P) -> SkipWhile<Self, P> where
P: FnMut(&Self::Item) -> Result<bool, Self::Error>,
fn skip_while<P>(self, predicate: P) -> SkipWhile<Self, P> where
P: FnMut(&Self::Item) -> Result<bool, Self::Error>,
Returns an iterator that skips elements based on a predicate.
sourcefn take_while<P>(self, predicate: P) -> TakeWhile<Self, P> where
P: FnMut(&Self::Item) -> Result<bool, Self::Error>,
fn take_while<P>(self, predicate: P) -> TakeWhile<Self, P> where
P: FnMut(&Self::Item) -> Result<bool, Self::Error>,
Returns an iterator that yields elements based on a predicate.
sourcefn skip(self, n: usize) -> Skip<Self>
fn skip(self, n: usize) -> Skip<Self>
Returns an iterator which skips the first n
values of this iterator.
sourcefn take(self, n: usize) -> Take<Self>
fn take(self, n: usize) -> Take<Self>
Returns an iterator that yields only the first n
values of this
iterator. Read more
sourcefn scan<St, B, F>(self, initial_state: St, f: F) -> Scan<Self, St, F> where
F: FnMut(&mut St, Self::Item) -> Result<Option<B>, Self::Error>,
fn scan<St, B, F>(self, initial_state: St, f: F) -> Scan<Self, St, F> where
F: FnMut(&mut St, Self::Item) -> Result<Option<B>, Self::Error>,
Returns an iterator which applies a stateful map to values of this iterator. Read more
sourcefn flat_map<U, F>(self, f: F) -> FlatMap<Self, U, F> where
U: IntoFallibleIterator<Error = Self::Error>,
F: FnMut(Self::Item) -> Result<U, Self::Error>,
fn flat_map<U, F>(self, f: F) -> FlatMap<Self, U, F> where
U: IntoFallibleIterator<Error = Self::Error>,
F: FnMut(Self::Item) -> Result<U, Self::Error>,
Returns an iterator which maps this iterator’s elements to iterators, yielding those iterators’ values.
sourcefn flatten(self) -> Flatten<Self> where
Self::Item: IntoFallibleIterator,
<Self::Item as IntoFallibleIterator>::Error == Self::Error,
fn flatten(self) -> Flatten<Self> where
Self::Item: IntoFallibleIterator,
<Self::Item as IntoFallibleIterator>::Error == Self::Error,
Returns an iterator which flattens an iterator of iterators, yielding those iterators’ values.
sourcefn fuse(self) -> Fuse<Self>
fn fuse(self) -> Fuse<Self>
Returns an iterator which yields this iterator’s elements and ends after
the first Ok(None)
. Read more
sourcefn inspect<F>(self, f: F) -> Inspect<Self, F> where
F: FnMut(&Self::Item) -> Result<(), Self::Error>,
fn inspect<F>(self, f: F) -> Inspect<Self, F> where
F: FnMut(&Self::Item) -> Result<(), Self::Error>,
Returns an iterator which passes each element to a closure before returning it.
sourcefn collect<T>(self) -> Result<T, Self::Error> where
T: FromFallibleIterator<Self::Item>,
fn collect<T>(self) -> Result<T, Self::Error> where
T: FromFallibleIterator<Self::Item>,
Transforms the iterator into a collection. Read more
sourcefn partition<B, F>(self, f: F) -> Result<(B, B), Self::Error> where
B: Default + Extend<Self::Item>,
F: FnMut(&Self::Item) -> Result<bool, Self::Error>,
fn partition<B, F>(self, f: F) -> Result<(B, B), Self::Error> where
B: Default + Extend<Self::Item>,
F: FnMut(&Self::Item) -> Result<bool, Self::Error>,
Transforms the iterator into two collections, partitioning elements by a closure.
sourcefn fold<B, F>(self, init: B, f: F) -> Result<B, Self::Error> where
F: FnMut(B, Self::Item) -> Result<B, Self::Error>,
fn fold<B, F>(self, init: B, f: F) -> Result<B, Self::Error> where
F: FnMut(B, Self::Item) -> Result<B, Self::Error>,
Applies a function over the elements of the iterator, producing a single final value. Read more
sourcefn try_fold<B, E, F>(&mut self, init: B, f: F) -> Result<B, E> where
E: From<Self::Error>,
F: FnMut(B, Self::Item) -> Result<B, E>,
fn try_fold<B, E, F>(&mut self, init: B, f: F) -> Result<B, E> where
E: From<Self::Error>,
F: FnMut(B, Self::Item) -> Result<B, E>,
Applies a function over the elements of the iterator, producing a single final value. Read more
sourcefn all<F>(&mut self, f: F) -> Result<bool, Self::Error> where
F: FnMut(Self::Item) -> Result<bool, Self::Error>,
fn all<F>(&mut self, f: F) -> Result<bool, Self::Error> where
F: FnMut(Self::Item) -> Result<bool, Self::Error>,
Determines if all elements of this iterator match a predicate.
sourcefn any<F>(&mut self, f: F) -> Result<bool, Self::Error> where
F: FnMut(Self::Item) -> Result<bool, Self::Error>,
fn any<F>(&mut self, f: F) -> Result<bool, Self::Error> where
F: FnMut(Self::Item) -> Result<bool, Self::Error>,
Determines if any element of this iterator matches a predicate.
sourcefn find<F>(&mut self, f: F) -> Result<Option<Self::Item>, Self::Error> where
F: FnMut(&Self::Item) -> Result<bool, Self::Error>,
fn find<F>(&mut self, f: F) -> Result<Option<Self::Item>, Self::Error> where
F: FnMut(&Self::Item) -> Result<bool, Self::Error>,
Returns the first element of the iterator that matches a predicate.
sourcefn find_map<B, F>(&mut self, f: F) -> Result<Option<B>, Self::Error> where
F: FnMut(Self::Item) -> Result<Option<B>, Self::Error>,
fn find_map<B, F>(&mut self, f: F) -> Result<Option<B>, Self::Error> where
F: FnMut(Self::Item) -> Result<Option<B>, Self::Error>,
Applies a function to the elements of the iterator, returning the first non-None
result.
sourcefn position<F>(&mut self, f: F) -> Result<Option<usize>, Self::Error> where
F: FnMut(Self::Item) -> Result<bool, Self::Error>,
fn position<F>(&mut self, f: F) -> Result<Option<usize>, Self::Error> where
F: FnMut(Self::Item) -> Result<bool, Self::Error>,
Returns the position of the first element of this iterator that matches a predicate. The predicate may fail; such failures are returned to the caller. Read more
sourcefn max(self) -> Result<Option<Self::Item>, Self::Error> where
Self::Item: Ord,
fn max(self) -> Result<Option<Self::Item>, Self::Error> where
Self::Item: Ord,
Returns the maximal element of the iterator.
sourcefn max_by_key<B, F>(self, f: F) -> Result<Option<Self::Item>, Self::Error> where
B: Ord,
F: FnMut(&Self::Item) -> Result<B, Self::Error>,
fn max_by_key<B, F>(self, f: F) -> Result<Option<Self::Item>, Self::Error> where
B: Ord,
F: FnMut(&Self::Item) -> Result<B, Self::Error>,
Returns the element of the iterator which gives the maximum value from the function. Read more
sourcefn max_by<F>(self, f: F) -> Result<Option<Self::Item>, Self::Error> where
F: FnMut(&Self::Item, &Self::Item) -> Result<Ordering, Self::Error>,
fn max_by<F>(self, f: F) -> Result<Option<Self::Item>, Self::Error> where
F: FnMut(&Self::Item, &Self::Item) -> Result<Ordering, Self::Error>,
Returns the element that gives the maximum value with respect to the function.
sourcefn min(self) -> Result<Option<Self::Item>, Self::Error> where
Self::Item: Ord,
fn min(self) -> Result<Option<Self::Item>, Self::Error> where
Self::Item: Ord,
Returns the minimal element of the iterator.
sourcefn min_by_key<B, F>(self, f: F) -> Result<Option<Self::Item>, Self::Error> where
B: Ord,
F: FnMut(&Self::Item) -> Result<B, Self::Error>,
fn min_by_key<B, F>(self, f: F) -> Result<Option<Self::Item>, Self::Error> where
B: Ord,
F: FnMut(&Self::Item) -> Result<B, Self::Error>,
Returns the element of the iterator which gives the minimum value from the function. Read more
sourcefn min_by<F>(self, f: F) -> Result<Option<Self::Item>, Self::Error> where
F: FnMut(&Self::Item, &Self::Item) -> Result<Ordering, Self::Error>,
fn min_by<F>(self, f: F) -> Result<Option<Self::Item>, Self::Error> where
F: FnMut(&Self::Item, &Self::Item) -> Result<Ordering, Self::Error>,
Returns the element that gives the minimum value with respect to the function.
sourcefn rev(self) -> Rev<Self> where
Self: DoubleEndedFallibleIterator,
fn rev(self) -> Rev<Self> where
Self: DoubleEndedFallibleIterator,
Returns an iterator that yields this iterator’s items in the opposite order. Read more
sourcefn unzip<A, B, FromA, FromB>(self) -> Result<(FromA, FromB), Self::Error> where
Self: FallibleIterator<Item = (A, B)>,
FromA: Default + Extend<A>,
FromB: Default + Extend<B>,
fn unzip<A, B, FromA, FromB>(self) -> Result<(FromA, FromB), Self::Error> where
Self: FallibleIterator<Item = (A, B)>,
FromA: Default + Extend<A>,
FromB: Default + Extend<B>,
Converts an iterator of pairs into a pair of containers.
sourcefn cloned<'a, T>(self) -> Cloned<Self> where
Self: FallibleIterator<Item = &'a T>,
T: 'a + Clone,
fn cloned<'a, T>(self) -> Cloned<Self> where
Self: FallibleIterator<Item = &'a T>,
T: 'a + Clone,
Returns an iterator which clones all of its elements.
sourcefn cycle(self) -> Cycle<Self> where
Self: Clone,
fn cycle(self) -> Cycle<Self> where
Self: Clone,
Returns an iterator which repeas this iterator endlessly.
sourcefn cmp<I>(self, other: I) -> Result<Ordering, Self::Error> where
I: IntoFallibleIterator<Item = Self::Item, Error = Self::Error>,
Self::Item: Ord,
fn cmp<I>(self, other: I) -> Result<Ordering, Self::Error> where
I: IntoFallibleIterator<Item = Self::Item, Error = Self::Error>,
Self::Item: Ord,
Lexicographically compares the elements of this iterator to that of another. Read more
sourcefn partial_cmp<I>(self, other: I) -> Result<Option<Ordering>, Self::Error> where
I: IntoFallibleIterator<Error = Self::Error>,
Self::Item: PartialOrd<<I as IntoFallibleIterator>::Item>,
fn partial_cmp<I>(self, other: I) -> Result<Option<Ordering>, Self::Error> where
I: IntoFallibleIterator<Error = Self::Error>,
Self::Item: PartialOrd<<I as IntoFallibleIterator>::Item>,
Lexicographically compares the elements of this iterator to that of another. Read more
sourcefn eq<I>(self, other: I) -> Result<bool, Self::Error> where
I: IntoFallibleIterator<Error = Self::Error>,
Self::Item: PartialEq<<I as IntoFallibleIterator>::Item>,
fn eq<I>(self, other: I) -> Result<bool, Self::Error> where
I: IntoFallibleIterator<Error = Self::Error>,
Self::Item: PartialEq<<I as IntoFallibleIterator>::Item>,
Determines if the elements of this iterator are equal to those of another. Read more
sourcefn ne<I>(self, other: I) -> Result<bool, Self::Error> where
I: IntoFallibleIterator<Error = Self::Error>,
Self::Item: PartialEq<<I as IntoFallibleIterator>::Item>,
fn ne<I>(self, other: I) -> Result<bool, Self::Error> where
I: IntoFallibleIterator<Error = Self::Error>,
Self::Item: PartialEq<<I as IntoFallibleIterator>::Item>,
Determines if the elements of this iterator are not equal to those of another. Read more
sourcefn lt<I>(self, other: I) -> Result<bool, Self::Error> where
I: IntoFallibleIterator<Error = Self::Error>,
Self::Item: PartialOrd<<I as IntoFallibleIterator>::Item>,
fn lt<I>(self, other: I) -> Result<bool, Self::Error> where
I: IntoFallibleIterator<Error = Self::Error>,
Self::Item: PartialOrd<<I as IntoFallibleIterator>::Item>,
Determines if the elements of this iterator are lexicographically less than those of another. Read more
sourcefn le<I>(self, other: I) -> Result<bool, Self::Error> where
I: IntoFallibleIterator<Error = Self::Error>,
Self::Item: PartialOrd<<I as IntoFallibleIterator>::Item>,
fn le<I>(self, other: I) -> Result<bool, Self::Error> where
I: IntoFallibleIterator<Error = Self::Error>,
Self::Item: PartialOrd<<I as IntoFallibleIterator>::Item>,
Determines if the elements of this iterator are lexicographically less than or equal to those of another. Read more
sourcefn gt<I>(self, other: I) -> Result<bool, Self::Error> where
I: IntoFallibleIterator<Error = Self::Error>,
Self::Item: PartialOrd<<I as IntoFallibleIterator>::Item>,
fn gt<I>(self, other: I) -> Result<bool, Self::Error> where
I: IntoFallibleIterator<Error = Self::Error>,
Self::Item: PartialOrd<<I as IntoFallibleIterator>::Item>,
Determines if the elements of this iterator are lexicographically greater than those of another. Read more
sourcefn ge<I>(self, other: I) -> Result<bool, Self::Error> where
I: IntoFallibleIterator<Error = Self::Error>,
Self::Item: PartialOrd<<I as IntoFallibleIterator>::Item>,
fn ge<I>(self, other: I) -> Result<bool, Self::Error> where
I: IntoFallibleIterator<Error = Self::Error>,
Self::Item: PartialOrd<<I as IntoFallibleIterator>::Item>,
Determines if the elements of this iterator are lexicographically greater than or equal to those of another. Read more
Auto Trait Implementations
impl<R> RefUnwindSafe for ArangeHeaderIter<R> where
R: RefUnwindSafe,
<R as Reader>::Offset: RefUnwindSafe,
impl<R> Send for ArangeHeaderIter<R> where
R: Send,
<R as Reader>::Offset: Send,
impl<R> Sync for ArangeHeaderIter<R> where
R: Sync,
<R as Reader>::Offset: Sync,
impl<R> Unpin for ArangeHeaderIter<R> where
R: Unpin,
<R as Reader>::Offset: Unpin,
impl<R> UnwindSafe for ArangeHeaderIter<R> where
R: UnwindSafe,
<R as Reader>::Offset: 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<I> IntoFallibleIterator for I where
I: FallibleIterator,
impl<I> IntoFallibleIterator for I where
I: FallibleIterator,
type Item = <I as FallibleIterator>::Item
type Item = <I as FallibleIterator>::Item
The elements of the iterator.
type Error = <I as FallibleIterator>::Error
type Error = <I as FallibleIterator>::Error
The error value of the iterator.
type IntoFallibleIter = I
type IntoFallibleIter = I
The iterator.
sourcefn into_fallible_iter(self) -> I
fn into_fallible_iter(self) -> I
Creates a fallible iterator from a value.
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