Searched refs:Vec (Results 1 – 10 of 10) sorted by relevance
/linux-6.1.9/rust/alloc/vec/ |
D | partial_eq.rs | 7 use super::Vec; 25 __impl_slice_eq1! { [A1: Allocator, A2: Allocator] Vec<T, A1>, Vec<U, A2>, #[stable(feature = "rust… 26 __impl_slice_eq1! { [A: Allocator] Vec<T, A>, &[U], #[stable(feature = "rust1", since = "1.0.0")] } 27 __impl_slice_eq1! { [A: Allocator] Vec<T, A>, &mut [U], #[stable(feature = "rust1", since = "1.0.0"… 28 __impl_slice_eq1! { [A: Allocator] &[T], Vec<U, A>, #[stable(feature = "partialeq_vec_for_ref_slice… 29 __impl_slice_eq1! { [A: Allocator] &mut [T], Vec<U, A>, #[stable(feature = "partialeq_vec_for_ref_s… 30 __impl_slice_eq1! { [A: Allocator] Vec<T, A>, [U], #[stable(feature = "partialeq_vec_for_slice", si… 31 __impl_slice_eq1! { [A: Allocator] [T], Vec<U, A>, #[stable(feature = "partialeq_vec_for_slice", si… 33 __impl_slice_eq1! { [A: Allocator] Cow<'_, [T]>, Vec<U, A> where T: Clone, #[stable(feature = "rust… 38 __impl_slice_eq1! { [A: Allocator, const N: usize] Vec<T, A>, [U; N], #[stable(feature = "rust1", s… [all …]
|
D | mod.rs | 402 pub struct Vec<T, #[unstable(feature = "allocator_api", issue = "32838")] A: Allocator = Global> { struct 411 impl<T> Vec<T> { implementation 427 Vec { buf: RawVec::NEW, len: 0 } in new() 550 impl<T, A: Allocator> Vec<T, A> { impl 568 Vec { buf: RawVec::new_in(alloc), len: 0 } in new_in() 617 Vec { buf: RawVec::with_capacity_in(capacity, alloc), len: 0 } in with_capacity_in() 693 unsafe { Vec { buf: RawVec::from_raw_parts_in(ptr, capacity, alloc), len: length } } in from_raw_parts_in() 1505 v: &'a mut Vec<T, A>, in retain_mut() 1639 vec: &'a mut Vec<T, A>, in dedup_by() 1996 Vec::with_capacity_in(self.capacity(), self.allocator().clone()), in split_off() [all …]
|
D | drain_filter.rs | 7 use super::Vec; 32 pub(super) vec: &'a mut Vec<T, A>,
|
D | drain.rs | 10 use super::Vec; 35 pub(super) vec: NonNull<Vec<T, A>>,
|
/linux-6.1.9/rust/alloc/ |
D | slice.rs | 103 use crate::vec::Vec; 162 use crate::vec::Vec; 167 pub fn into_vec<T, A: Allocator>(b: Box<[T], A>) -> Vec<T, A> { in into_vec() 171 Vec::from_raw_parts_in(b as *mut T, len, len, alloc) in into_vec() 177 pub fn to_vec<T: ConvertVec, A: Allocator>(s: &[T], alloc: A) -> Vec<T, A> { in to_vec() 183 fn to_vec<A: Allocator>(s: &[Self], alloc: A) -> Vec<Self, A> in to_vec() 191 default fn to_vec<A: Allocator>(s: &[Self], alloc: A) -> Vec<Self, A> { in to_vec() 193 vec: &'a mut Vec<T, A>, in to_vec() 206 let mut vec = Vec::with_capacity_in(s.len(), alloc); in to_vec() 228 fn to_vec<A: Allocator>(s: &[Self], alloc: A) -> Vec<Self, A> { in to_vec() [all …]
|
D | boxed.rs | 166 use crate::vec::Vec; 1904 iter.into_iter().collect::<Vec<_>>().into_boxed_slice() in from_iter()
|
/linux-6.1.9/samples/rust/ |
D | rust_minimal.rs | 16 numbers: Vec<i32>, 24 let mut numbers = Vec::new(); in init()
|
/linux-6.1.9/rust/macros/ |
D | module.rs | 91 let mut seen_keys = Vec::new(); in parse() 135 let mut ordered_keys: Vec<&str> = Vec::new(); in parse()
|
/linux-6.1.9/rust/kernel/ |
D | prelude.rs | 18 pub use alloc::{boxed::Box, vec::Vec};
|
/linux-6.1.9/scripts/ |
D | generate_rust_target.rs | 26 type Object = Vec<(String, Value)>; 54 TargetSpec(Vec::new()) in new()
|