Lines Matching full:let
163 let me = ManuallyDrop::new(self); in into_box()
165 let slice = slice::from_raw_parts_mut(me.ptr() as *mut MaybeUninit<T>, len); in into_box()
178 let layout = match Layout::array::<T>(capacity) { in allocate_in()
186 let result = match init { in allocate_in()
190 let ptr = match result { in allocate_in()
249 let layout = Layout::array::<T>(self.cap).unwrap_unchecked(); in current_memory()
398 let required_cap = len.checked_add(additional).ok_or(CapacityOverflow)?; in grow_amortized()
402 let cap = cmp::max(self.cap * 2, required_cap); in grow_amortized()
403 let cap = cmp::max(Self::MIN_NON_ZERO_CAP, cap); in grow_amortized()
405 let new_layout = Layout::array::<T>(cap); in grow_amortized()
408 let ptr = finish_grow(new_layout, self.current_memory(), &mut self.alloc)?; in grow_amortized()
423 let cap = len.checked_add(additional).ok_or(CapacityOverflow)?; in grow_exact()
424 let new_layout = Layout::array::<T>(cap); in grow_exact()
427 let ptr = finish_grow(new_layout, self.current_memory(), &mut self.alloc)?; in grow_exact()
436 let (ptr, layout) = if let Some(mem) = self.current_memory() { mem } else { return Ok(()) }; in shrink()
438 let ptr = unsafe { in shrink()
441 let new_layout = Layout::array::<T>(cap).unwrap_unchecked(); in shrink()
465 let new_layout = new_layout.map_err(|_| CapacityOverflow)?; in finish_grow()
469 let memory = if let Some((ptr, old_layout)) = current_memory { in finish_grow()
486 if let Some((ptr, layout)) = self.current_memory() { in drop()