Home
last modified time | relevance | path

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

/linux/scripts/
H A Drustdoc_test_gen.rs95 match valid_paths.as_slice() { in find_real_path()
/linux/rust/macros/
H A Dpaste.rs51 segments.append(&mut concat_helper(tokens.as_slice())); in concat_helper()
/linux/rust/zerocopy/src/
H A Dbyte_slice.rs377 let slc = v.as_slice(); in prove_split_at_unchecked()
H A Dref.rs1062 assert_eq!(&*r, vec![AU64(0); typed_len].as_slice()); in test_new_helper_slice()
1075 assert_eq!(Ref::bytes(&r), VAL1.0.to_ne_bytes().repeat(typed_len).as_slice()); in test_new_helper_slice()
H A Dimpls.rs896 let c: Ptr<'_, [ReadOnly<T>], _> = c.as_slice();
1842 let slc = vec.as_slice(); in test_impls()
/linux/rust/kernel/debugfs/
H A Dtraits.rs
/linux/rust/syn/
H A Dscan_expr.rs196 let mut state = INIT.as_slice(); in scan_expr()
/linux/rust/zerocopy/src/pointer/
H A Dinner.rs515 pub fn as_slice(self) -> PtrInner<'a, [T]> { in as_slice() method
H A Dptr.rs1035 pub fn as_slice(self) -> Ptr<'a, [T], I> { in as_slice() function
1036 let slice = self.as_inner().as_slice(); in as_slice()
/linux/rust/kernel/alloc/
H A Dkvec.rs266 /// assert_eq!(v.as_slice(), &[1, 2]); in as_ptr()
270 pub fn as_slice(&self) -> &[T] {
1110 self.as_slice()
244 pub fn as_slice(&self) -> &[T] { as_slice() function
/linux/rust/kernel/
H A Dstr.rs888 unsafe { CStr::from_bytes_with_nul_unchecked(self.buf.as_slice()) }
/linux/rust/proc-macro2/
H A Dfallback.rs1080 b'\0' => repr.push_str(match bytes.as_slice().first() { in byte_string()