| /linux/rust/kernel/alloc/ |
| H A D | kvec.rs | 104 pub struct Vec<T, A: Allocator> { struct 126 pub type KVec<T> = Vec<T, Kmalloc>; 139 pub type VVec<T> = Vec<T, Vmalloc>; 152 pub type KVVec<T> = Vec<T, KVmalloc>; 155 unsafe impl<T, A> Send for Vec<T, A> implementation 163 unsafe impl<T, A> Sync for Vec<T, A> implementation 170 impl<T, A> Vec<T, A> impl 502 let mut v = Vec::new(); in with_capacity() 738 impl<T: Clone, A: Allocator> Vec<T, A> { impl 831 impl<T, A> Drop for Vec<T, A> implementation [all …]
|
| /linux/rust/syn/ |
| H A D | pat.rs | 113 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 D | expr.rs | 275 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 D | stmt.rs | 16 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 D | item.rs | 107 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 D | file.rs | 83 pub attrs: Vec<Attribute>, 84 pub items: Vec<Item>, 102 let mut items = Vec::new(); in parse()
|
| H A D | parse_quote.rs | 170 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 D | tt.rs | 87 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 D | bigint.rs | 7 digits: Vec<u8>, 12 BigInt { digits: Vec::new() } in new()
|
| H A D | attr.rs | 408 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 D | lookahead.rs | 67 comparisons: RefCell<Vec<&'static str>>, 74 comparisons: RefCell::new(Vec::new()), in new()
|
| H A D | buffer.rs | 41 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 D | module.rs | 7 fn expect_string_array(it: &mut token_stream::IntoIter) -> Vec<String> { in expect_string_array() 10 let mut values = Vec::new(); in expect_string_array() 204 authors: Option<Vec<String>>, 206 alias: Option<Vec<String>>, 207 firmware: Option<Vec<String>>, 208 imports_ns: Option<Vec<String>>, 209 params: Option<Vec<Parameter>>, 220 fn expect_params(it: &mut token_stream::IntoIter) -> Vec<Parameter> { in expect_params() 224 let mut parsed = Vec::new(); in expect_params() 271 let mut seen_keys = Vec::new(); in parse() [all …]
|
| H A D | paste.rs | 5 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 D | pin_data.rs | |
| H A D | vtable.rs | 8 let mut tokens: Vec<_> = ts.into_iter().collect(); in vtable() 30 let mut functions = Vec::new(); in vtable()
|
| H A D | pinned_drop.rs | |
| H A D | zeroable.rs | |
| /linux/rust/proc-macro2/ |
| H A D | rcvec.rs | 10 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 D | rustdoc_test_gen.rs | 48 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 D | generate_rust_target.rs | 23 Array(Vec<Value>), 27 type Object = Vec<(String, Value)>; 108 TargetSpec(Vec::new()) in new()
|
| /linux/rust/pin-init/internal/src/ |
| H A D | zeroable.rs | 12 Vec<TokenTree>, in parse_zeroable_derive_input() 13 Vec<TokenTree>, in parse_zeroable_derive_input() 14 Vec<TokenTree>, in parse_zeroable_derive_input() 28 let mut new_impl_generics = Vec::with_capacity(impl_generics.len()); in parse_zeroable_derive_input()
|
| H A D | pinned_drop.rs | 9 let mut toks = input.into_iter().collect::<Vec<_>>(); in pinned_drop()
|
| /linux/rust/kernel/ |
| H A D | prelude.rs | 25 pub use crate::alloc::{flags::*, Box, KBox, KVBox, KVVec, KVec, VBox, VVec, Vec};
|
| /linux/rust/kernel/debugfs/ |
| H A D | traits.rs | 127 impl<T, A> BinaryWriter for Vec<T, A> implementation 235 impl<T, A> BinaryReaderMut for Vec<T, A> implementation
|