Home
last modified time | relevance | path

Searched refs:IntoIter (Results 1 – 6 of 6) sorted by relevance

/Linux-v6.6/rust/alloc/vec/
Dinto_iter.rs35 pub struct IntoIter< struct
52 impl<T: fmt::Debug, A: Allocator> fmt::Debug for IntoIter<T, A> { implementation
58 impl<T, A: Allocator> IntoIter<T, A> { implementation
174 impl<T, A: Allocator> AsRef<[T]> for IntoIter<T, A> { implementation
181 unsafe impl<T: Send, A: Allocator + Send> Send for IntoIter<T, A> {} implementation
183 unsafe impl<T: Sync, A: Allocator + Sync> Sync for IntoIter<T, A> {} implementation
186 impl<T, A: Allocator> Iterator for IntoIter<T, A> { implementation
242 fn next_chunk<const N: usize>(&mut self) -> Result<[T; N], core::array::IntoIter<T, N>> { in next_chunk()
251 return Err(unsafe { array::IntoIter::new_unchecked(raw_ary, 0..len) });
265 return Err(array::IntoIter::new_unchecked(raw_ary, 0..len));
[all …]
Dspec_extend.rs8 use super::{IntoIter, Vec};
60 impl<T, A: Allocator> SpecExtend<T, IntoIter<T>> for Vec<T, A> {
61 fn spec_extend(&mut self, mut iterator: IntoIter<T>) { in spec_extend()
69 impl<T, A: Allocator> TrySpecExtend<T, IntoIter<T>> for Vec<T, A> {
70 fn try_spec_extend(&mut self, mut iterator: IntoIter<T>) -> Result<(), TryReserveError> { in try_spec_extend()
Dmod.rs101 pub use self::into_iter::IntoIter;
2956 <Self as SpecFromIter<T, I::IntoIter>>::from_iter(iter.into_iter()) in from_iter()
2963 type IntoIter = IntoIter<T, A>; typedef
2982 fn into_iter(self) -> Self::IntoIter { in into_iter() argument
2993 IntoIter { in into_iter()
3008 type IntoIter = slice::Iter<'a, T>; typedef
3010 fn into_iter(self) -> Self::IntoIter { in into_iter() argument
3018 type IntoIter = slice::IterMut<'a, T>; typedef
3020 fn into_iter(self) -> Self::IntoIter { in into_iter() argument
3030 <Self as SpecExtend<T, I::IntoIter>>::spec_extend(self, iter.into_iter()) in extend()
[all …]
/Linux-v6.6/rust/macros/
Dhelpers.rs5 pub(crate) fn try_ident(it: &mut token_stream::IntoIter) -> Option<String> { in try_ident()
13 pub(crate) fn try_literal(it: &mut token_stream::IntoIter) -> Option<String> { in try_literal()
21 pub(crate) fn try_string(it: &mut token_stream::IntoIter) -> Option<String> { in try_string()
37 pub(crate) fn expect_ident(it: &mut token_stream::IntoIter) -> String { in expect_ident()
41 pub(crate) fn expect_punct(it: &mut token_stream::IntoIter) -> char { in expect_punct()
49 pub(crate) fn expect_string(it: &mut token_stream::IntoIter) -> String { in expect_string()
53 pub(crate) fn expect_string_ascii(it: &mut token_stream::IntoIter) -> String { in expect_string_ascii()
59 pub(crate) fn expect_group(it: &mut token_stream::IntoIter) -> Group { in expect_group()
67 pub(crate) fn expect_end(it: &mut token_stream::IntoIter) { in expect_end() argument
Dmodule.rs7 fn expect_string_array(it: &mut token_stream::IntoIter) -> Vec<String> { in expect_string_array()
103 fn parse(it: &mut token_stream::IntoIter) -> Self { in parse()
Dconcat_idents.rs7 fn expect_ident(it: &mut token_stream::IntoIter) -> Ident { in expect_ident()