Searched refs:as_slice (Results 1 – 6 of 6) sorted by relevance
41 f.debug_tuple("Drain").field(&self.iter.as_slice()).finish() in fmt()59 pub fn as_slice(&self) -> &[T] { in as_slice() method60 self.iter.as_slice() in as_slice()114 let unyielded_ptr = this.iter.as_slice().as_ptr(); in keep_rest()144 self.as_slice() in as_ref()229 let drop_ptr = iter.as_slice().as_ptr(); in drop()
63 self.append_elements(iterator.as_slice() as _); in spec_extend()72 self.try_append_elements(iterator.as_slice() as _)?; in try_spec_extend()106 let slice = iterator.as_slice(); in spec_extend()116 let slice = iterator.as_slice(); in try_spec_extend()
54 f.debug_tuple("IntoIter").field(&self.as_slice()).finish() in fmt()71 pub fn as_slice(&self) -> &[T] { in as_slice() method176 self.as_slice() in as_ref()391 self.as_slice().to_vec_in(self.alloc.deref().clone()).into_iter() in clone()395 crate::slice::to_vec(self.as_slice(), self.alloc.deref().clone()).into_iter() in clone()
1306 pub fn as_slice(&self) -> &[T] { in as_slice() method2072 self.append_elements(other.as_slice() as _); in append()2887 crate::slice::SpecCloneIntoVec::clone_into(other.as_slice(), self); in clone_from()
284 let seed: [u8; 16] = seed_vec.as_slice().try_into().unwrap(); in test_rng()
592 unsafe { CStr::from_bytes_with_nul_unchecked(self.buf.as_slice()) } in deref()