Lines Matching refs:last
51 last: Option<Box<T>>, field
59 last: None, in new()
66 self.inner.len() == 0 && self.last.is_none() in is_empty()
74 self.inner.len() + if self.last.is_some() { 1 } else { 0 } in len()
88 pub fn last(&self) -> Option<&T> { in last() method
102 self.last.as_deref() in get()
114 self.last.as_deref_mut() in get_mut()
125 last: self.last.as_ref().map(Box::as_ref).into_iter(), in iter()
136 last: self.last.as_mut().map(Box::as_mut).into_iter(), in iter_mut()
146 last: self.last.as_ref().map(Box::as_ref).into_iter(), in pairs()
155 last: self.last.as_mut().map(Box::as_mut).into_iter(), in pairs_mut()
164 last: self.last.map(|t| *t).into_iter(), in into_pairs()
186 self.last = Some(Box::new(value)); in push_value()
198 self.last.is_some(), in push_punct()
202 let last = self.last.take().unwrap(); in push_punct() localVariable
203 self.inner.push((*last, punctuation)); in push_punct()
209 if self.last.is_some() { in pop()
210 self.last.take().map(|t| Pair::End(*t)) in pop()
219 if self.last.is_some() { in pop_punct()
223 self.last = Some(Box::new(t)); in pop_punct()
231 self.last.is_none() && !self.is_empty() in trailing_punct()
239 self.last.is_none() in empty_or_trailing()
282 self.last = None; in clear()
395 last: self.last.clone(), in clone()
401 self.last.clone_from(&other.last); in clone_from()
422 let Punctuated { inner, last } = self; in eq()
423 *inner == other.inner && *last == other.last in eq()
435 let Punctuated { inner, last } = self; in hash()
437 last.hash(state); in hash()
450 if let Some(last) = &self.last { in fmt()
451 list.entry(last); in fmt()
511 punctuated.last = Some(Box::new(a)); in do_extend()
525 elements.extend(self.last.map(|t| *t)); in into_iter()
564 last: option::IntoIter<&'a T>, field
574 .or_else(|| self.last.next().map(Pair::End)) in next()
584 self.last in next_back()
593 self.inner.len() + self.last.len() in len()
602 last: self.last.clone(), in clone()
614 last: option::IntoIter<&'a mut T>, field
624 .or_else(|| self.last.next().map(Pair::End)) in next()
634 self.last in next_back()
643 self.inner.len() + self.last.len() in len()
654 last: option::IntoIter<T>, field
664 .or_else(|| self.last.next().map(Pair::End)) in next()
674 self.last in next_back()
683 self.inner.len() + self.last.len() in len()
695 last: self.last.clone(), in clone()
759 last: option::IntoIter<&'a T>, field
816 .or_else(|| self.last.next()) in next()
822 self.last in next_back()
830 self.inner.len() + self.last.len() in len()
839 last: self.last.clone(), in clone()
874 last: option::IntoIter<&'a mut T>, field
922 .or_else(|| self.last.next()) in next()
928 self.last in next_back()
936 self.inner.len() + self.last.len() in len()
1078 match &self.last { in index()
1091 match &mut self.last { in index_mut()
1117 last: match punctuated.last { in fold()