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