Home
last modified time | relevance | path

Searched refs:Vec (Results 1 – 25 of 43) sorted by relevance

12

/linux/rust/kernel/alloc/
H A Dkvec.rs3 //! Implementation of [`Vec`].
94 /// The kernel's [`Vec`] type.
97 /// [`Kmalloc`], [`Vmalloc`] or [`KVmalloc`]), written `Vec<T, A>`.
99 /// For non-zero-sized values, a [`Vec`] will use the given allocator `A` for its allocation. For
102 /// For zero-sized types the [`Vec`]'s pointer must be `dangling_mut::<T>`; no memory is allocated.
104 /// Generally, [`Vec`] consists of a pointer that represents the vector's backing buffer, the
109 /// A [`Vec`] can be deconstructed into and (re-)constructed from its previously named raw parts
112 /// [`Vec`]'s backing buffer gets, if required, automatically increased (re-allocated) when elements
130 pub struct Vec<T, A: Allocator> {
141 /// Type alias for [`Vec`] wit
107 pub struct Vec<T, A: Allocator> { global() struct
118 _pVec global() argument
158 unsafe impl<T, A> Send for Vec<T, A> global() implementation
166 unsafe impl<T, A> Sync for Vec<T, A> global() implementation
173 impl<T, A> Vec<T, A> global() implementation
743 impl<T> Vec<T, KVmalloc> { global() implementation
850 impl<T: Clone, A: Allocator> Vec<T, A> { global() implementation
943 impl<T, A> Drop for Vec<T, A> global() implementation
963 impl<T, A, const N: usize> From<Box<[T; N], A>> for Vec<T, A> global() implementation
981 impl<T, A: Allocator> Default for Vec<T, A> { global() implementation
988 impl<T: fmt::Debug, A: Allocator> fmt::Debug for Vec<T, A> { global() implementation
994 impl<T, A> Deref for Vec<T, A> global() implementation
1008 impl<T, A> DerefMut for Vec<T, A> global() implementation
1037 impl<T, A> Borrow<[T]> for Vec<T, A> global() implementation
1063 impl<T, A> BorrowMut<[T]> for Vec<T, A> global() implementation
1072 impl<T: Eq, A> Eq for Vec<T, A> where A: Allocator {} global() implementation
1074 impl<T, I: SliceIndex<[T]>, A> Index<I> for Vec<T, A> global() implementation
1086 impl<T, I: SliceIndex<[T]>, A> IndexMut<I> for Vec<T, A> global() implementation
1122 impl<'a, T, A> IntoIterator for &'a Vec<T, A> global() implementation
1134 impl<'a, T, A: Allocator> IntoIterator for &'a mut Vec<T, A> global() implementation
1380 impl<T, A> IntoIterator for Vec<T, A> global() implementation
[all...]
/linux/rust/syn/
H A Dpat.rs113 pub attrs: Vec<Attribute>,
125 pub attrs: Vec<Attribute>,
135 pub attrs: Vec<Attribute>,
145 pub attrs: Vec<Attribute>,
156 pub attrs: Vec<Attribute>,
165 pub attrs: Vec<Attribute>,
175 pub attrs: Vec<Attribute>,
188 pub attrs: Vec<Attribute>,
198 pub attrs: Vec<Attribute>,
210 pub attrs: Vec<Attribute>,
[all …]
H A Dexpr.rs275 pub attrs: Vec<Attribute>,
285 pub attrs: Vec<Attribute>,
296 pub attrs: Vec<Attribute>,
307 pub attrs: Vec<Attribute>,
318 pub attrs: Vec<Attribute>,
329 pub attrs: Vec<Attribute>,
340 pub attrs: Vec<Attribute>,
351 pub attrs: Vec<Attribute>,
362 pub attrs: Vec<Attribute>,
373 pub attrs: Vec<Attribute>,
[all …]
H A Dstmt.rs16 pub stmts: Vec<Stmt>,
46 pub attrs: Vec<Attribute>,
76 pub attrs: Vec<Attribute>,
153 pub fn parse_within(input: ParseStream) -> Result<Vec<Stmt>> { in parse_within()
154 let mut stmts = Vec::new(); in parse_within()
268 fn stmt_mac(input: ParseStream, attrs: Vec<Attribute>, path: Path) -> Result<StmtMacro> { in stmt_mac()
285 fn stmt_local(input: ParseStream, attrs: Vec<Attribute>) -> Result<Local> { in stmt_local()
293 attrs: Vec::new(), in stmt_local()
307 attrs: Vec::new(), in stmt_local()
339 mut attrs: Vec<Attribute>, in stmt_expr()
[all …]
H A Ditem.rs107 pub attrs: Vec<Attribute>,
124 pub attrs: Vec<Attribute>,
138 pub attrs: Vec<Attribute>,
152 pub attrs: Vec<Attribute>,
163 pub attrs: Vec<Attribute>,
167 pub items: Vec<ForeignItem>,
176 pub attrs: Vec<Attribute>,
186 pub items: Vec<ImplItem>,
194 pub attrs: Vec<Attribute>,
206 pub attrs: Vec<Attribute>,
[all …]
H A Dfile.rs83 pub attrs: Vec<Attribute>,
84 pub items: Vec<Item>,
102 let mut items = Vec::new(); in parse()
H A Dparse_quote.rs170 impl ParseQuote for Vec<Attribute> { implementation
172 let mut attrs = Vec::new(); in parse()
231 impl ParseQuote for Vec<Stmt> { implementation
238 impl ParseQuote for Vec<Arm> { implementation
H A Dtt.rs87 let left = self.0.clone().into_iter().collect::<Vec<_>>(); in eq()
88 let right = other.0.clone().into_iter().collect::<Vec<_>>(); in eq()
103 let tts = self.0.clone().into_iter().collect::<Vec<_>>(); in hash()
H A Dbigint.rs7 digits: Vec<u8>,
12 BigInt { digits: Vec::new() } in new()
H A Dattr.rs408 pub fn parse_outer(input: ParseStream) -> Result<Vec<Self>> { in parse_outer()
409 let mut attrs = Vec::new(); in parse_outer()
424 pub fn parse_inner(input: ParseStream) -> Result<Vec<Self>> { in parse_inner()
425 let mut attrs = Vec::new(); in parse_inner()
661 pub(crate) fn parse_inner(input: ParseStream, attrs: &mut Vec<Attribute>) -> Result<()> { in parse_inner()
749 attrs: Vec::new(), in parse_meta_name_value_after_path()
H A Dlookahead.rs67 comparisons: RefCell<Vec<&'static str>>,
74 comparisons: RefCell::new(Vec::new()), in new()
H A Dbuffer.rs41 fn recursive_new(entries: &mut Vec<Entry>, stream: TokenStream) { in recursive_new()
74 let mut entries = Vec::new(); in new2()
290 let mut tts = Vec::new(); in token_stream()
/linux/rust/macros/
H A Dmodule.rs238 let mut seen_keys = Vec::new(); in expect_params()
274 let mut ordered_keys: Vec<&str> = Vec::new(); in parse()
H A Dpaste.rs5 fn concat_helper(tokens: &[TokenTree]) -> Vec<(String, Span)> { in concat_helper()
7 let mut segments = Vec::new(); in concat_helper()
50 let tokens = group.stream().into_iter().collect::<Vec<TokenTree>>(); in concat_helper()
66 pub(crate) fn expand(tokens: &mut Vec<TokenTree>) { in expand()
71 let mut stream: Vec<_> = group.stream().into_iter().collect(); in expand()
H A Dpin_data.rs
H A Dvtable.rs25 let mut gen_items = Vec::new(); in vtable()
59 let mut gen_items = Vec::new(); in vtable()
H A Dpinned_drop.rs
/linux/rust/proc-macro2/
H A Drcvec.rs10 inner: Rc<Vec<T>>,
14 inner: Vec<T>,
18 inner: &'a mut Vec<T>,
60 Vec::clone(&self.inner) in make_owned()
68 RcVecBuilder { inner: Vec::new() } in new()
73 inner: Vec::with_capacity(cap), in with_capacity()
/linux/scripts/
H A Drustdoc_test_gen.rs48 fn find_real_path<'a>(srctree: &Path, valid_paths: &'a mut Vec<PathBuf>, file: &str) -> &'a str { in find_real_path()
51 let potential_components: Vec<&str> = file.strip_suffix("_rs").unwrap().split('_').collect(); in find_real_path()
56 valid_paths: &mut Vec<PathBuf>, in find_real_path()
116 .collect::<Vec<_>>(); in main()
127 let mut valid_paths: Vec<PathBuf> = Vec::new(); in main()
H A Dgenerate_rust_target.rs23 Array(Vec<Value>),
27 type Object = Vec<(String, Value)>;
108 TargetSpec(Vec::new()) in new()
/linux/rust/pin-init/internal/src/
H A Dzeroable.rs
H A Dinit.rs17 attrs: Vec<InitializerAttribute>,
33 attrs: Vec<Attribute>,
325 let field_attrs: Vec<_> = fields
329 let field_name: Vec<_> = fields.iter().filter_map(|f| f.kind.ident()).collect();
409 .collect::<Result<Vec<_>, _>>()?;
H A Dpinned_drop.rs
/linux/rust/kernel/
H A Dprelude.rs86 Vec, //
/linux/rust/kernel/debugfs/
H A Dtraits.rs147 // Delegate for `Vec<T, A>`.
148 impl<T, A> BinaryWriter for Vec<T, A>
255 // Delegate for `Vec<T, A>`: Support a `Vec<T, A>` with an outer lock. in read_from_slice_mut()
256 impl<T, A> BinaryReaderMut for Vec<T, A> in read_from_slice_mut()
127 impl<T, A> BinaryWriter for Vec<T, A> global() implementation
235 impl<T, A> BinaryReaderMut for Vec<T, A> global() implementation

12