Lines Matching refs:last
48 last: Option<Box<T>>, field
56 last: None, in new()
63 self.inner.len() == 0 && self.last.is_none() in is_empty()
71 self.inner.len() + if self.last.is_some() { 1 } else { 0 } in len()
80 pub fn last(&self) -> Option<&T> { in last() method
81 if self.last.is_some() { in last()
82 self.last.as_ref().map(Box::as_ref) in last()
84 self.inner.last().map(|pair| &pair.0) in last()
90 if self.last.is_some() { in last_mut()
91 self.last.as_mut().map(Box::as_mut) in last_mut()
102 last: self.last.as_ref().map(Box::as_ref).into_iter(), in iter()
113 last: self.last.as_mut().map(Box::as_mut).into_iter(), in iter_mut()
123 last: self.last.as_ref().map(Box::as_ref).into_iter(), in pairs()
132 last: self.last.as_mut().map(Box::as_mut).into_iter(), in pairs_mut()
141 last: self.last.map(|t| *t).into_iter(), in into_pairs()
159 self.last = Some(Box::new(value)); in push_value()
170 assert!(self.last.is_some()); in push_punct()
171 let last = self.last.take().unwrap(); in push_punct() localVariable
172 self.inner.push((*last, punctuation)); in push_punct()
178 if self.last.is_some() { in pop()
179 self.last.take().map(|t| Pair::End(*t)) in pop()
188 self.last.is_none() && !self.is_empty() in trailing_punct()
196 self.last.is_none() in empty_or_trailing()
349 if let Some(last) = &self.last { in fmt()
350 list.entry(last); in fmt()
397 self.last = Some(Box::new(a)); in extend()
412 elements.extend(self.last.map(|t| *t)); in into_iter()
451 last: option::IntoIter<&'a T>, field
461 .or_else(|| self.last.next().map(Pair::End)) in next()
471 self.last in next_back()
480 self.inner.len() + self.last.len() in len()
489 last: self.last.clone(), in clone()
501 last: option::IntoIter<&'a mut T>, field
511 .or_else(|| self.last.next().map(Pair::End)) in next()
521 self.last in next_back()
530 self.inner.len() + self.last.len() in len()
542 last: option::IntoIter<T>, field
552 .or_else(|| self.last.next().map(Pair::End)) in next()
562 self.last in next_back()
571 self.inner.len() + self.last.len() in len()
629 last: option::IntoIter<&'a T>, field
679 .or_else(|| self.last.next()) in next()
685 self.last in next_back()
693 self.inner.len() + self.last.len() in len()
702 last: self.last.clone(), in clone()
732 last: option::IntoIter<&'a mut T>, field
773 .or_else(|| self.last.next()) in next()
779 self.last in next_back()
787 self.inner.len() + self.last.len() in len()
864 match &self.last { in index()
877 match &mut self.last { in index_mut()