Lines Matching defs:take
618 /// assert_eq!(cell.take(), None);
622 /// assert_eq!(cell.take(), Some("hello".to_string()));
637 pub fn take(&mut self) -> Option<T> {
723 init.take().unwrap_or_else(|| panic!("Lazy instance has previously been poisoned"))
744 this.cell.get_or_init(|| match this.init.take() {
1047 let res = self.get_or_init(|| unsafe { unwrap_unchecked(value.take()) });
1143 /// assert_eq!(cell.take(), None);
1147 /// assert_eq!(cell.take(), Some("hello".to_string()));
1162 pub fn take(&mut self) -> Option<T> {
1254 init.take().unwrap_or_else(|| panic!("Lazy instance has previously been poisoned"))
1274 this.cell.get_or_init(|| match this.init.take() {