Home
last modified time | relevance | path

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

/linux-6.15/rust/kernel/alloc/
H A Dkvec.rs98 pub struct Vec<T, A: Allocator> { struct
120 pub type KVec<T> = Vec<T, Kmalloc>;
133 pub type VVec<T> = Vec<T, Vmalloc>;
149 unsafe impl<T, A> Send for Vec<T, A> implementation
157 unsafe impl<T, A> Sync for Vec<T, A> implementation
164 impl<T, A> Vec<T, A> implementation
319 let mut v = Vec::new(); in with_capacity()
526 impl<T, A> Drop for Vec<T, A> implementation
577 impl<T, A> Deref for Vec<T, A> implementation
591 impl<T, A> DerefMut for Vec<T, A> implementation
[all …]
/linux-6.15/rust/macros/
H A Dmodule.rs7 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()
98 authors: Option<Vec<String>>,
100 alias: Option<Vec<String>>,
101 firmware: Option<Vec<String>>,
119 let mut seen_keys = Vec::new(); in parse()
159 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 Dquote.rs50 let mut tokens: ::std::vec::Vec<::proc_macro::TokenTree>;
53 tokens = ::std::vec::Vec::new();
76 let mut tokens = ::std::vec::Vec::<::proc_macro::TokenTree>::new();
85 let mut tokens = ::std::vec::Vec::new();
94 let mut tokens = ::std::vec::Vec::new();
H A Dvtable.rs8 let mut tokens: Vec<_> = ts.into_iter().collect(); in vtable()
30 let mut functions = Vec::new(); in vtable()
H A Dkunit.rs21 let mut tokens: Vec<_> = ts.into_iter().collect(); in kunit_tests()
43 let mut tests = Vec::new(); in kunit_tests()
/linux-6.15/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()
115 .collect::<Vec<_>>(); in main()
126 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-6.15/rust/pin-init/internal/src/
H A Dhelpers.rs33 pub(crate) decl_generics: Vec<TokenTree>,
37 pub(crate) impl_generics: Vec<TokenTree>,
42 pub(crate) ty_generics: Vec<TokenTree>,
48 pub(crate) fn parse_generics(input: TokenStream) -> (Generics, Vec<TokenTree>) { in parse_generics()
H A Dpin_data.rs63 .collect::<Vec<_>>(); in pin_data()
74 .collect::<Vec<_>>(); in pin_data()
95 struct_name: &Vec<TokenTree>, in replace_self_and_deny_type_defs()
98 ) -> Vec<TokenTree> { in replace_self_and_deny_type_defs()
H A Dpinned_drop.rs9 let mut toks = input.into_iter().collect::<Vec<_>>(); in pinned_drop()
H A Dzeroable.rs21 let mut new_impl_generics = Vec::with_capacity(impl_generics.len()); in derive()
/linux-6.15/rust/kernel/
H A Duaccess.rs130 pub fn read_all<A: Allocator>(self, buf: &mut Vec<u8, A>, flags: Flags) -> Result { in read_all()
284 pub fn read_all<A: Allocator>(mut self, buf: &mut Vec<u8, A>, flags: Flags) -> Result { in read_all()
H A Dprelude.rs17 pub use crate::alloc::{flags::*, Box, KBox, KVBox, KVVec, KVec, VBox, VVec, Vec};
H A Dalloc.rs26 pub use self::kvec::Vec;
/linux-6.15/Documentation/gpu/nova/core/
H A Dtodo.rst193 Vec extensions
196 Implement ``Vec::truncate`` and ``Vec::resize``.
229 | Reference: Vec extensions