Struct tauri::http::header::ValueDrain
x3A;:header::ValueDrain,
pub struct ValueDrain<'a, T> { /* fields omitted */ }
Expand description
An drain iterator of all values associated with a single header name.
#
Trait ImplementationsDebug for ValueDrain<'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
Drop for ValueDrain<'a, T>[src]#
impl<'a, T>drop(&mut self)[src]#
pub fnExecutes the destructor for this type. Read more
Iterator for ValueDrain<'a, T>[src]#
impl<'a, T>Item = T#
typeThe type of the elements being iterated over.
next(&mut self) -> Option<T>[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 ValueDrain<'a, T>#
impl<'a, T>Send for ValueDrain<'a, T> where T: Send,#
impl<'a, T>Sync for ValueDrain<'a, T> where T: Sync,#
impl<'a, T>#
Auto Trait ImplementationsRefUnwindSafe for ValueDrain<'a, T> where T: RefUnwindSafe,#
impl<'a, T>Unpin for ValueDrain<'a, T> where T: Unpin,#
impl<'a, T>UnwindSafe for ValueDrain<'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
Iterator<Item = NodeDataRef<ElementData>>,#
impl<I> ElementIterator for I where I:select(self, selectors: &str) -> Result<Select<Self, Selectors>, ()>#
fnFilter this element iterator to elements maching the given selectors.
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
Iterator<Item = NodeRef>,#
impl<I> NodeIterator for I where I:elements(self) -> Elements<Self>#
fnFilter this element iterator to elements.
text_nodes(self) -> TextNodes<Self>#
fnFilter this node iterator to text nodes.
comments(self) -> Comments<Self>#
fnFilter this node iterator to comment nodes.
select( self, selectors: &str ) -> Result<Select<Elements<Self>, Selectors>, ()>#
fnFilter this node iterator to elements maching the given selectors.
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.
Iterator<Item = char>,#
impl<I> UnicodeNormalization<I> for I where I:nfd(self) -> Decompositions<I>#
pub fnReturns an iterator over the string in Unicode Normalization Form D (canonical decomposition). Read more
nfkd(self) -> Decompositions<I>#
pub fnReturns an iterator over the string in Unicode Normalization Form KD (compatibility decomposition). Read more
nfc(self) -> Recompositions<I>#
pub fnAn Iterator over the string in Unicode Normalization Form C (canonical decomposition followed by canonical composition). Read more
nfkc(self) -> Recompositions<I>#
pub fnAn Iterator over the string in Unicode Normalization Form KC (compatibility decomposition followed by canonical composition). Read more
cjk_compat_variants(self) -> Replacements<I>#
pub fnA transformation which replaces CJK Compatibility Ideograph codepoints with normal forms using Standardized Variation Sequences. This is not part of the canonical or compatibility decomposition algorithms, but performing it before those algorithms produces normalized output which better preserves the intent of the original text. Read more
stream_safe(self) -> StreamSafe<I>#
pub fnAn Iterator over the string with Conjoining Grapheme Joiner characters inserted according to the Stream-Safe Text Process (UAX15-D4) Read more