Home
last modified time | relevance | path

Searched refs:as_slice (Results 1 – 6 of 6) sorted by relevance

/openbmc/linux/rust/alloc/vec/
H A Ddrain.rs41 f.debug_tuple("Drain").field(&self.iter.as_slice()).finish() in fmt()
59 pub fn as_slice(&self) -> &[T] { in as_slice() method
60 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()
H A Dspec_extend.rs63 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()
H A Dinto_iter.rs54 f.debug_tuple("IntoIter").field(&self.as_slice()).finish() in fmt()
71 pub fn as_slice(&self) -> &[T] { in as_slice() method
176 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()
H A Dmod.rs1306 pub fn as_slice(&self) -> &[T] { in as_slice() method
2072 self.append_elements(other.as_slice() as _); in append()
2887 crate::slice::SpecCloneIntoVec::clone_into(other.as_slice(), self); in clone_from()
/openbmc/linux/rust/alloc/
H A Dlib.rs284 let seed: [u8; 16] = seed_vec.as_slice().try_into().unwrap(); in test_rng()
/openbmc/linux/rust/kernel/
H A Dstr.rs592 unsafe { CStr::from_bytes_with_nul_unchecked(self.buf.as_slice()) } in deref()