Lines Matching +full:all +full:- +full:impls
5 //! - The fields of a struct are `Punctuated<Field, Token![,]>`.
6 //! - The segments of a path are `Punctuated<PathSegment, Token![::]>`.
7 //! - The bounds on a generic parameter are `Punctuated<TypeParamBound,
9 //! - The arguments to a function call are `Punctuated<Expr, Token![,]>`.
23 #[cfg(feature = "extra-traits")]
25 #[cfg(feature = "extra-traits")]
53 pub const fn new() -> Self { in new()
62 pub fn is_empty(&self) -> bool { in is_empty()
70 pub fn len(&self) -> usize { in len()
75 pub fn first(&self) -> Option<&T> { in first()
80 pub fn first_mut(&mut self) -> Option<&mut T> { in first_mut()
85 pub fn last(&self) -> Option<&T> { in last()
90 pub fn last_mut(&mut self) -> Option<&mut T> { in last_mut()
95 pub fn iter(&self) -> Iter<T> { in iter()
106 pub fn iter_mut(&mut self) -> IterMut<T> { in iter_mut()
117 pub fn pairs(&self) -> Pairs<T, P> { in pairs()
126 pub fn pairs_mut(&mut self) -> PairsMut<T, P> { in pairs_mut()
135 pub fn into_pairs(self) -> IntoPairs<T, P> { in into_pairs()
164 /// The sequence must be non-empty and must not already have trailing
182 pub fn pop(&mut self) -> Option<Pair<T, P>> { in pop()
192 pub fn pop_punct(&mut self) -> Option<P> { in pop_punct()
204 pub fn trailing_punct(&self) -> bool { in trailing_punct()
212 pub fn empty_or_trailing(&self) -> bool { in empty_or_trailing()
253 /// Clears the sequence of all values and punctuation, making it empty.
266 pub fn parse_terminated(input: ParseStream) -> Result<Self> in parse_terminated()
286 parser: fn(ParseStream) -> Result<T>, in parse_terminated_with()
287 ) -> Result<Self> in parse_terminated_with()
318 pub fn parse_separated_nonempty(input: ParseStream) -> Result<Self> in parse_separated_nonempty()
338 parser: fn(ParseStream) -> Result<T>, in parse_separated_nonempty_with()
339 ) -> Result<Self> in parse_separated_nonempty_with()
359 #[cfg(feature = "clone-impls")]
360 #[cfg_attr(doc_cfg, doc(cfg(feature = "clone-impls")))]
366 fn clone(&self) -> Self { in clone()
379 #[cfg(feature = "extra-traits")]
380 #[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))]
388 #[cfg(feature = "extra-traits")]
389 #[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))]
395 fn eq(&self, other: &Self) -> bool { in eq()
401 #[cfg(feature = "extra-traits")]
402 #[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))]
415 #[cfg(feature = "extra-traits")]
416 #[cfg_attr(doc_cfg, doc(cfg(feature = "extra-traits")))]
418 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { in fmt()
435 fn from_iter<I: IntoIterator<Item = T>>(i: I) -> Self { in from_iter()
454 fn from_iter<I: IntoIterator<Item = Pair<T, P>>>(i: I) -> Self { in from_iter()
496 fn into_iter(self) -> Self::IntoIter { in into_iter()
511 fn into_iter(self) -> Self::IntoIter { in into_iter()
520 fn into_iter(self) -> Self::IntoIter { in into_iter()
526 fn default() -> Self { in default()
544 fn next(&mut self) -> Option<Self::Item> { in next()
551 fn size_hint(&self) -> (usize, Option<usize>) { in size_hint()
557 fn next_back(&mut self) -> Option<Self::Item> { in next_back()
566 fn len(&self) -> usize { in len()
573 fn clone(&self) -> Self { in clone()
594 fn next(&mut self) -> Option<Self::Item> { in next()
601 fn size_hint(&self) -> (usize, Option<usize>) { in size_hint()
607 fn next_back(&mut self) -> Option<Self::Item> { in next_back()
616 fn len(&self) -> usize { in len()
634 fn next(&mut self) -> Option<Self::Item> { in next()
641 fn size_hint(&self) -> (usize, Option<usize>) { in size_hint()
647 fn next_back(&mut self) -> Option<Self::Item> { in next_back()
656 fn len(&self) -> usize { in len()
666 fn clone(&self) -> Self { in clone()
686 fn next(&mut self) -> Option<Self::Item> { in next()
690 fn size_hint(&self) -> (usize, Option<usize>) { in size_hint()
696 fn next_back(&mut self) -> Option<Self::Item> { in next_back()
702 fn len(&self) -> usize { in len()
711 fn clone(&self) -> Self { in clone()
728 fn clone_box(&self) -> Box<NoDrop<dyn IterTrait<'a, T> + 'a>>; in clone_box()
744 pub(crate) fn empty_punctuated_iter<'a, T>() -> Iter<'a, T> { in empty_punctuated_iter()
752 fn clone(&self) -> Self { in clone()
762 fn next(&mut self) -> Option<Self::Item> { in next()
766 fn size_hint(&self) -> (usize, Option<usize>) { in size_hint()
772 fn next_back(&mut self) -> Option<Self::Item> { in next_back()
778 fn len(&self) -> usize { in len()
786 fn next(&mut self) -> Option<Self::Item> { in next()
795 fn next_back(&mut self) -> Option<Self::Item> { in next_back()
803 fn len(&self) -> usize { in len()
810 fn clone(&self) -> Self { in clone()
827 fn clone_box(&self) -> Box<NoDrop<dyn IterTrait<'a, T> + 'a>> { in clone_box()
859 pub(crate) fn empty_punctuated_iter_mut<'a, T>() -> IterMut<'a, T> { in empty_punctuated_iter_mut()
868 fn next(&mut self) -> Option<Self::Item> { in next()
872 fn size_hint(&self) -> (usize, Option<usize>) { in size_hint()
878 fn next_back(&mut self) -> Option<Self::Item> { in next_back()
884 fn len(&self) -> usize { in len()
892 fn next(&mut self) -> Option<Self::Item> { in next()
901 fn next_back(&mut self) -> Option<Self::Item> { in next_back()
909 fn len(&self) -> usize { in len()
935 pub fn into_value(self) -> T { in into_value()
942 pub fn value(&self) -> &T { in value()
949 pub fn value_mut(&mut self) -> &mut T { in value_mut()
957 pub fn punct(&self) -> Option<&P> { in punct()
982 pub fn punct_mut(&mut self) -> Option<&mut P> { in punct_mut()
991 pub fn new(t: T, p: Option<P>) -> Self { in new()
1000 pub fn into_tuple(self) -> (T, Option<P>) { in into_tuple()
1008 #[cfg(feature = "clone-impls")]
1009 #[cfg_attr(doc_cfg, doc(cfg(feature = "clone-impls")))]
1011 pub fn cloned(self) -> Pair<T, P> in cloned()
1023 #[cfg(feature = "clone-impls")]
1024 #[cfg_attr(doc_cfg, doc(cfg(feature = "clone-impls")))]
1030 fn clone(&self) -> Self { in clone()
1038 #[cfg(feature = "clone-impls")]
1039 #[cfg_attr(doc_cfg, doc(cfg(feature = "clone-impls")))]
1050 fn index(&self, index: usize) -> &Self::Output { in index()
1051 if index == self.len() - 1 { in index()
1063 fn index_mut(&mut self, index: usize) -> &mut Self::Output { in index_mut()
1064 if index == self.len() - 1 { in index_mut()