Struct tauri::http::header::IterMut
x3A;:header::IterMut,
pub struct IterMut<'a, T> { /* fields omitted */ }
Expand description
HeaderMap
mutable entry iterator
Yields (&HeaderName, &mut value)
tuples. The same header name may be yielded more than once if it has more than one associated value.
#
Trait ImplementationsDebug for IterMut<'a, T> where T: Debug,[src]#
impl<'a, T>fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>[src]#
pub fnFormats the value using the given formatter. Read more
Iterator for IterMut<'a, T>[src]#
impl<'a, T>Item = (&'a HeaderName, &'a mutT)#
typeThe type of the elements being iterated over.
next(&mut self) -> Option<<IterMut<'a, T> as Iterator>::Item>[src]#
pub fnAdvances the iterator and returns the next value. Read more
size_hint(&self) -> (usize, Option<usize>)[src]#
pub fnReturns the bounds on the remaining length of the iterator. Read more
count(self) -> usize1.0.0[src]#
fnConsumes the iterator, counting the number of iterations and returning it. Read more
last(self) -> Option<Self::Item>1.0.0[src]#
fnConsumes the iterator, returning the last element. Read more
advance_by(&mut self, n: usize) -> Result<(), usize>[src]#
fn🔬 This is a nightly-only experimental API. (iter_advance_by
)
recently added
Advances the iterator by n
elements. Read more
nth(&mut self, n: usize) -> Option<Self::Item>1.0.0[src]#
fnReturns the n
th element of the iterator. Read more
step_by(self, step: usize) -> StepBy<Self>1.28.0[src]#
fnCreates an iterator starting at the same point, but stepping by the given amount at each iteration. Read more
chain<U>(self, other: U) -> Chain<Self, <U as IntoIterator>::IntoIter> where U: IntoIterator<Item = Self::Item>,1.0.0[src]#
fnTakes two iterators and creates a new iterator over both in sequence. Read more
zip<U>(self, other: U) -> Zip<Self, <U as IntoIterator>::IntoIter> where U: IntoIterator,1.0.0[src]#
fn‘Zips up’ two iterators into a single iterator of pairs. Read more
intersperse(self, separator: Self::Item) -> Intersperse<Self> where Self::Item: Clone,[src]#
fn🔬 This is a nightly-only experimental API. (iter_intersperse
)
recently added
Creates a new iterator which places a copy of separator
between adjacent items of the original iterator. Read more
intersperse_with<G>(self, separator: G) -> IntersperseWith<Self, G> where G: FnMut() -> Self::Item,[src]#
fn🔬 This is a nightly-only experimental API. (iter_intersperse
)
recently added
Creates a new iterator which places an item generated by separator
between adjacent items of the original iterator. Read more
map<B, F>(self, f: F) -> Map<Self, F> where F: FnMut(Self::Item) -> B,1.0.0[src]#
fnTakes a closure and creates an iterator which calls that closure on each element. Read more
for_each<F>(self, f: F) where F: FnMut(Self::Item),1.21.0[src]#
fnCalls a closure on each element of an iterator. Read more
filter<P>(self, predicate: P) -> Filter<Self, P> where P: FnMut(&Self::Item) -> bool,1.0.0[src]#
fnCreates an iterator which uses a closure to determine if an element should be yielded. Read more
filter_map<B, F>(self, f: F) -> FilterMap<Self, F> where F: FnMut(Self::Item) -> Option<B>,1.0.0[src]#
fnCreates an iterator that both filters and maps. Read more
enumerate(self) -> Enumerate<Self>1.0.0[src]#
fnCreates an iterator which gives the current iteration count as well as the next value. Read more
peekable(self) -> Peekable<Self>1.0.0[src]#
fnCreates an iterator which can use the peek
and peek_mut
methods to look at the next element of the iterator without consuming it. See their documentation for more information. Read more
skip_while<P>(self, predicate: P) -> SkipWhile<Self, P> where P: FnMut(&Self::Item) -> bool,1.0.0[src]#
fnCreates an iterator that skip
s elements based on a predicate. Read more
take_while<P>(self, predicate: P) -> TakeWhile<Self, P> where P: FnMut(&Self::Item) -> bool,1.0.0[src]#
fnCreates an iterator that yields elements based on a predicate. Read more
map_while<B, P>(self, predicate: P) -> MapWhile<Self, P> where P: FnMut(Self::Item) -> Option<B>,[src]#
fn🔬 This is a nightly-only experimental API. (iter_map_while
)
recently added
Creates an iterator that both yields elements based on a predicate and maps. Read more
skip(self, n: usize) -> Skip<Self>1.0.0[src]#
fnCreates an iterator that skips the first n
elements. Read more
take(self, n: usize) -> Take<Self>1.0.0[src]#
fnCreates an iterator that yields the first n
elements, or fewer if the underlying iterator ends sooner. Read more
scan<St, B, F>(self, initial_state: St, f: F) -> Scan<Self, St, F> where F: FnMut(&mutSt, Self::Item) -> Option<B>,1.0.0[src]#
fnAn iterator adaptor similar to fold
that holds internal state and produces a new iterator. Read more
flat_map<U, F>(self, f: F) -> FlatMap<Self, U, F> where F: FnMut(Self::Item) -> U, U: IntoIterator,1.0.0[src]#
fnCreates an iterator that works like map, but flattens nested structure. Read more
flatten(self) -> Flatten<Self> where Self::Item: IntoIterator,1.29.0[src]#
fnCreates an iterator that flattens nested structure. Read more
fuse(self) -> Fuse<Self>1.0.0[src]#
fnCreates an iterator which ends after the first None
. Read more
inspect<F>(self, f: F) -> Inspect<Self, F> where F: FnMut(&Self::Item),1.0.0[src]#
fnDoes something with each element of an iterator, passing the value on. Read more
by_ref(&mut self) -> &mutSelf1.0.0[src]#
fnBorrows an iterator, rather than consuming it. Read more
collect<B>(self) -> B where B: FromIterator<Self::Item>,1.0.0[src]#
#[must_use = "if you really need to exhaust the iterator, consider `.for_each(drop)` instead"]fnTransforms an iterator into a collection. Read more
partition<B, F>(self, f: F) -> (B, B) where F: FnMut(&Self::Item) -> bool, B: Default + Extend<Self::Item>,1.0.0[src]#
fnConsumes an iterator, creating two collections from it. Read more
partition_in_place<'a, T, P>(self, predicate: P) -> usize where Self: DoubleEndedIterator<Item = &'a mutT>, T: 'a, P: FnMut(&T) -> bool,[src]#
fn🔬 This is a nightly-only experimental API. (iter_partition_in_place
)
new API
Reorders the elements of this iterator in-place according to the given predicate, such that all those that return true
precede all those that return false
. Returns the number of true
elements found. Read more
is_partitioned<P>(self, predicate: P) -> bool where P: FnMut(Self::Item) -> bool,[src]#
fn🔬 This is a nightly-only experimental API. (iter_is_partitioned
)
new API
Checks if the elements of this iterator are partitioned according to the given predicate, such that all those that return true
precede all those that return false
. Read more
try_fold<B, F, R>(&mut self, init: B, f: F) -> R where R: Try<Output = B>, F: FnMut(B, Self::Item) -> R,1.27.0[src]#
fnAn iterator method that applies a function as long as it returns successfully, producing a single, final value. Read more
try_for_each<F, R>(&mut self, f: F) -> R where R: Try<Output = ()>, F: FnMut(Self::Item) -> R,1.27.0[src]#
fnAn iterator method that applies a fallible function to each item in the iterator, stopping at the first error and returning that error. Read more
fold<B, F>(self, init: B, f: F) -> B where F: FnMut(B, Self::Item) -> B,1.0.0[src]#
fnFolds every element into an accumulator by applying an operation, returning the final result. Read more
reduce<F>(self, f: F) -> Option<Self::Item> where F: FnMut(Self::Item, Self::Item) -> Self::Item,1.51.0[src]#
fnReduces the elements to a single one, by repeatedly applying a reducing operation. Read more
all<F>(&mut self, f: F) -> bool where F: FnMut(Self::Item) -> bool,1.0.0[src]#
fnTests if every element of the iterator matches a predicate. Read more
any<F>(&mut self, f: F) -> bool where F: FnMut(Self::Item) -> bool,1.0.0[src]#
fnTests if any element of the iterator matches a predicate. Read more
find<P>(&mut self, predicate: P) -> Option<Self::Item> where P: FnMut(&Self::Item) -> bool,1.0.0[src]#
fnSearches for an element of an iterator that satisfies a predicate. Read more
find_map<B, F>(&mut self, f: F) -> Option<B> where F: FnMut(Self::Item) -> Option<B>,1.30.0[src]#
fnApplies function to the elements of iterator and returns the first non-none result. Read more
try_find<F, R, E>(&mut self, f: F) -> Result<Option<Self::Item>, E> where R: Try<Output = bool, Residual = Result<Infallible, E>> + Try, F: FnMut(&Self::Item) -> R,[src]#
fn🔬 This is a nightly-only experimental API. (try_find
)
new API
Applies function to the elements of iterator and returns the first true result or the first error. Read more
position<P>(&mut self, predicate: P) -> Option<usize> where P: FnMut(Self::Item) -> bool,1.0.0[src]#
fnSearches for an element in an iterator, returning its index. Read more
rposition<P>(&mut self, predicate: P) -> Option<usize> where Self: ExactSizeIterator + DoubleEndedIterator, P: FnMut(Self::Item) -> bool,1.0.0[src]#
fnSearches for an element in an iterator from the right, returning its index. Read more
max(self) -> Option<Self::Item> where Self::Item: Ord,1.0.0[src]#
fnReturns the maximum element of an iterator. Read more
min(self) -> Option<Self::Item> where Self::Item: Ord,1.0.0[src]#
fnReturns the minimum element of an iterator. Read more
max_by_key<B, F>(self, f: F) -> Option<Self::Item> where F: FnMut(&Self::Item) -> B, B: Ord,1.6.0[src]#
fnReturns the element that gives the maximum value from the specified function. Read more
max_by<F>(self, compare: F) -> Option<Self::Item> where F: FnMut(&Self::Item, &Self::Item) -> Ordering,1.15.0[src]#
fnReturns the element that gives the maximum value with respect to the specified comparison function. Read more
min_by_key<B, F>(self, f: F) -> Option<Self::Item> where F: FnMut(&Self::Item) -> B, B: Ord,1.6.0[src]#
fnReturns the element that gives the minimum value from the specified function. Read more
min_by<F>(self, compare: F) -> Option<Self::Item> where F: FnMut(&Self::Item, &Self::Item) -> Ordering,1.15.0[src]#
fnReturns the element that gives the minimum value with respect to the specified comparison function. Read more
rev(self) -> Rev<Self> where Self: DoubleEndedIterator,1.0.0[src]#
fnReverses an iterator’s direction. Read more
unzip<A, B, FromA, FromB>(self) -> (FromA, FromB) where Self: Iterator<Item = (A, B)>, FromA: Default + Extend<A>, FromB: Default + Extend<B>,1.0.0[src]#
fnConverts an iterator of pairs into a pair of containers. Read more
copied<'a, T>(self) -> Copied<Self> where Self: Iterator<Item = &'aT>, T: 'a + Copy,1.36.0[src]#
fnCreates an iterator which copies all of its elements. Read more
cloned<'a, T>(self) -> Cloned<Self> where Self: Iterator<Item = &'aT>, T: 'a + Clone,1.0.0[src]#
fnCreates an iterator which clone
s all of its elements. Read more
cycle(self) -> Cycle<Self> where Self: Clone,1.0.0[src]#
fnRepeats an iterator endlessly. Read more
sum<S>(self) -> S where S: Sum<Self::Item>,1.11.0[src]#
fnSums the elements of an iterator. Read more
product<P>(self) -> P where P: Product<Self::Item>,1.11.0[src]#
fnIterates over the entire iterator, multiplying all the elements Read more
cmp<I>(self, other: I) -> Ordering where I: IntoIterator<Item = Self::Item>, Self::Item: Ord,1.5.0[src]#
fnLexicographically compares the elements of this Iterator
with those of another. Read more
cmp_by<I, F>(self, other: I, cmp: F) -> Ordering where F: FnMut(Self::Item, <I as IntoIterator>::Item) -> Ordering, I: IntoIterator,[src]#
fn🔬 This is a nightly-only experimental API. (iter_order_by
)
Lexicographically compares the elements of this Iterator
with those of another with respect to the specified comparison function. Read more
partial_cmp<I>(self, other: I) -> Option<Ordering> where I: IntoIterator, Self::Item: PartialOrd<<I as IntoIterator>::Item>,1.5.0[src]#
fnLexicographically compares the elements of this Iterator
with those of another. Read more
partial_cmp_by<I, F>(self, other: I, partial_cmp: F) -> Option<Ordering> where F: FnMut(Self::Item, <I as IntoIterator>::Item) -> Option<Ordering>, I: IntoIterator,[src]#
fn🔬 This is a nightly-only experimental API. (iter_order_by
)
Lexicographically compares the elements of this Iterator
with those of another with respect to the specified comparison function. Read more
eq<I>(self, other: I) -> bool where I: IntoIterator, Self::Item: PartialEq<<I as IntoIterator>::Item>,1.5.0[src]#
fnDetermines if the elements of this Iterator
are equal to those of another. Read more
eq_by<I, F>(self, other: I, eq: F) -> bool where F: FnMut(Self::Item, <I as IntoIterator>::Item) -> bool, I: IntoIterator,[src]#
fn🔬 This is a nightly-only experimental API. (iter_order_by
)
Determines if the elements of this Iterator
are equal to those of another with respect to the specified equality function. Read more
ne<I>(self, other: I) -> bool where I: IntoIterator, Self::Item: PartialEq<<I as IntoIterator>::Item>,1.5.0[src]#
fnDetermines if the elements of this Iterator
are unequal to those of another. Read more
lt<I>(self, other: I) -> bool where I: IntoIterator, Self::Item: PartialOrd<<I as IntoIterator>::Item>,1.5.0[src]#
fnDetermines if the elements of this Iterator
are lexicographically less than those of another. Read more
le<I>(self, other: I) -> bool where I: IntoIterator, Self::Item: PartialOrd<<I as IntoIterator>::Item>,1.5.0[src]#
fnDetermines if the elements of this Iterator
are lexicographically less or equal to those of another. Read more
gt<I>(self, other: I) -> bool where I: IntoIterator, Self::Item: PartialOrd<<I as IntoIterator>::Item>,1.5.0[src]#
fnDetermines if the elements of this Iterator
are lexicographically greater than those of another. Read more
ge<I>(self, other: I) -> bool where I: IntoIterator, Self::Item: PartialOrd<<I as IntoIterator>::Item>,1.5.0[src]#
fnDetermines if the elements of this Iterator
are lexicographically greater than or equal to those of another. Read more
is_sorted(self) -> bool where Self::Item: PartialOrd<Self::Item>,[src]#
fn🔬 This is a nightly-only experimental API. (is_sorted
)
new API
Checks if the elements of this iterator are sorted. Read more
is_sorted_by<F>(self, compare: F) -> bool where F: FnMut(&Self::Item, &Self::Item) -> Option<Ordering>,[src]#
fn🔬 This is a nightly-only experimental API. (is_sorted
)
new API
Checks if the elements of this iterator are sorted using the given comparator function. Read more
is_sorted_by_key<F, K>(self, f: F) -> bool where F: FnMut(Self::Item) -> K, K: PartialOrd<K>,[src]#
fn🔬 This is a nightly-only experimental API. (is_sorted
)
new API
Checks if the elements of this iterator are sorted using the given key extraction function. Read more
FusedIterator for IterMut<'a, T>#
impl<'a, T>Send for IterMut<'a, T> where T: Send,#
impl<'a, T>Sync for IterMut<'a, T> where T: Sync,#
impl<'a, T>#
Auto Trait ImplementationsRefUnwindSafe for IterMut<'a, T> where T: RefUnwindSafe,#
impl<'a, T>Unpin for IterMut<'a, T>#
impl<'a, T>UnwindSafe for IterMut<'a, T>#
impl<'a, T> \!#
Blanket ImplementationsAny for T where T: 'static + ?Sized,[src]#
impl<T>type_id(&self) -> TypeId[src]#
pub fnGets the TypeId
of self
. Read more
Borrow<T> for T where T: ?Sized,[src]#
impl<T>borrow(&self) -> &T[src]#
pub fnImmutably borrows from an owned value. Read more
BorrowMut<T> for T where T: ?Sized,[src]#
impl<T>borrow_mut(&mut self) -> &mutT[src]#
pub fnMutably borrows from an owned value. Read more
From<T> for T[src]#
impl<T>from(t: T) -> T[src]#
pub fnPerforms the conversion.
Into<U> for T where U: From<T>,[src]#
impl<T, U>into(self) -> U[src]#
pub fnPerforms the conversion.
IntoIterator for I where I: Iterator,[src]#
impl<I>Item = <I as Iterator>::Item#
typeThe type of the elements being iterated over.
IntoIter = I#
typeWhich kind of iterator are we turning this into?
into_iter(self) -> I[src]#
pub fnCreates an iterator from a value. Read more
IteratorRandom for I where I: Iterator,[src]#
impl<I>choose<R>(self, rng: &mutR) -> Option<Self::Item> where R: Rng + ?Sized,[src]#
fnChoose one element at random from the iterator. Read more
choose_stable<R>(self, rng: &mutR) -> Option<Self::Item> where R: Rng + ?Sized,[src]#
fnChoose one element at random from the iterator. Read more
choose_multiple_fill<R>(self, rng: &mutR, buf: &mut [Self::Item]) -> usize where R: Rng + ?Sized,[src]#
fnCollects values at random from the iterator into a supplied buffer until that buffer is filled. Read more
choose_multiple<R>( self, rng: &mutR, amount: usize ) -> Vec<Self::Item, Global> where R: Rng + ?Sized,[src]#
fnCollects amount
values at random from the iterator into a vector. Read more
TryFrom<U> for T where U: Into<T>,[src]#
impl<T, U>Error = Infallible#
typeThe type returned in the event of a conversion error.
try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]#
pub fnPerforms the conversion.
TryInto<U> for T where U: TryFrom<T>,[src]#
impl<T, U>Error = <U as TryFrom<T>>::Error#
typeThe type returned in the event of a conversion error.
try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]#
pub fnPerforms the conversion.