Home
last modified time | relevance | path

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

12

/openbmc/linux/rust/alloc/vec/
H A Dpartial_eq.rs7 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 …]
H A Dmod.rs399 pub struct Vec<T, #[unstable(feature = "allocator_api", issue = "32838")] A: Allocator = Global> { struct
408 impl<T> Vec<T> { implementation
424 Vec { buf: RawVec::NEW, len: 0 } in new()
648 impl<T, A: Allocator> Vec<T, A> { impl
666 Vec { buf: RawVec::new_in(alloc), len: 0 } in new_in()
728 Vec { buf: RawVec::with_capacity_in(capacity, alloc), len: 0 } in with_capacity_in()
788 Ok(Vec { buf: RawVec::try_with_capacity_in(capacity, alloc)?, len: 0 }) in try_with_capacity_in()
902 unsafe { Vec { buf: RawVec::from_raw_parts_in(ptr, capacity, alloc), len: length } } in from_raw_parts_in()
1717 v: &'a mut Vec<T, A>, in retain_mut()
1851 vec: &'a mut Vec<T, A>, in dedup_by()
[all …]
H A Dspec_extend.rs8 use super::{IntoIter, Vec};
22 impl<T, I, A: Allocator> SpecExtend<T, I> for Vec<T, A> implementation
31 impl<T, I, A: Allocator> TrySpecExtend<T, I> for Vec<T, A> implementation
41 impl<T, I, A: Allocator> SpecExtend<T, I> for Vec<T, A> implementation
50 impl<T, I, A: Allocator> TrySpecExtend<T, I> for Vec<T, A> implementation
60 impl<T, A: Allocator> SpecExtend<T, IntoIter<T>> for Vec<T, A> { implementation
69 impl<T, A: Allocator> TrySpecExtend<T, IntoIter<T>> for Vec<T, A> { implementation
80 impl<'a, T: 'a, I, A: Allocator> SpecExtend<&'a T, I> for Vec<T, A> implementation
90 impl<'a, T: 'a, I, A: Allocator> TrySpecExtend<&'a T, I> for Vec<T, A> implementation
101 impl<'a, T: 'a, A: Allocator> SpecExtend<&'a T, slice::Iter<'a, T>> for Vec<T, A> implementation
[all …]
H A Dextract_if.rs7 use super::Vec;
33 pub(super) vec: &'a mut Vec<T, A>,
H A Ddrain.rs10 use super::Vec;
35 pub(super) vec: NonNull<Vec<T, A>>,
/openbmc/linux/rust/alloc/
H A Dslice.rs33 use crate::vec::Vec;
97 use crate::vec::Vec;
102 pub fn into_vec<T, A: Allocator>(b: Box<[T], A>) -> Vec<T, A> { in into_vec()
106 Vec::from_raw_parts_in(b as *mut T, len, len, alloc) in into_vec()
112 pub fn to_vec<T: ConvertVec, A: Allocator>(s: &[T], alloc: A) -> Vec<T, A> { in to_vec()
118 fn to_vec<A: Allocator>(s: &[Self], alloc: A) -> Vec<Self, A> in to_vec()
126 default fn to_vec<A: Allocator>(s: &[Self], alloc: A) -> Vec<Self, A> { in to_vec()
128 vec: &'a mut Vec<T, A>, in to_vec()
141 let mut vec = Vec::with_capacity_in(s.len(), alloc); in to_vec()
163 fn to_vec<A: Allocator>(s: &[Self], alloc: A) -> Vec<Self, A> { in to_vec()
[all …]
H A Dboxed.rs181 use crate::vec::Vec;
1689 impl<T, const N: usize> TryFrom<Vec<T>> for Box<[T; N]> {
1690 type Error = Vec<T>;
1710 fn try_from(vec: Vec<T>) -> Result<Self, Self::Error> { in try_from()
2039 iter.into_iter().collect::<Vec<_>>().into_boxed_slice() in from_iter()
H A Dlib.rs283 hc64.to_le_bytes().into_iter().chain(0u8..8).collect::<crate::vec::Vec<u8>>(); in test_rng()
/openbmc/openbmc/meta-security/recipes-ids/suricata/files/
H A DCVE-2024-38535_pre.patch67 let mut blocks = Vec::new();
78 let mut blocks = Vec::new();
136 - name: Vec::new(),
137 - value: Vec::new(),
138 + name: Rc::new(Vec::new()),
139 + value: Rc::new(Vec::new()),
145 - name: Vec::new(),
146 - value: Vec::new(),
147 + name: Rc::new(Vec::new()),
148 + value: Rc::new(Vec::new()),
[all …]
/openbmc/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()
115 .collect::<Vec<_>>(); in main()
126 let mut valid_paths: Vec<PathBuf> = Vec::new(); in main()
H A Dgenerate_rust_target.rs26 type Object = Vec<(String, Value)>;
54 TargetSpec(Vec::new()) in new()
/openbmc/linux/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()
99 alias: Option<Vec<String>>,
109 let mut seen_keys = Vec::new(); in parse()
153 let mut ordered_keys: Vec<&str> = Vec::new(); in parse()
H A Dpin_data.rs59 .collect::<Vec<_>>(); in pin_data()
70 .collect::<Vec<_>>(); in pin_data()
90 struct_name: &Vec<TokenTree>, in replace_self_and_deny_type_defs()
93 ) -> Vec<TokenTree> { in replace_self_and_deny_type_defs()
H A Dpaste.rs7 let mut segments = Vec::new(); in concat()
49 pub(crate) fn expand(tokens: &mut Vec<TokenTree>) { in expand()
54 let mut stream: Vec<_> = group.stream().into_iter().collect(); in expand()
H A Dhelpers.rs74 pub(crate) impl_generics: Vec<TokenTree>,
75 pub(crate) ty_generics: Vec<TokenTree>,
81 pub(crate) fn parse_generics(input: TokenStream) -> (Generics, Vec<TokenTree>) { in parse_generics()
H A Dquote.rs46 tokens = ::std::vec::Vec::new();
68 let mut tokens = ::std::vec::Vec::new();
77 let mut tokens = ::std::vec::Vec::new();
86 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 Dpinned_drop.rs6 let mut toks = input.into_iter().collect::<Vec<_>>(); in pinned_drop()
H A Dzeroable.rs17 let mut new_impl_generics = Vec::with_capacity(impl_generics.len()); in derive()
/openbmc/linux/samples/rust/
H A Drust_minimal.rs16 numbers: Vec<i32>,
24 let mut numbers = Vec::new(); in init()
/openbmc/qemu/rust/qemu-api-macros/src/
H A Dlib.rs75 let field_names: Vec<&Ident> = fields.iter().map(|f| f.ident.as_ref().unwrap()).collect(); in derive_offsets_or_error()
76 let field_types: Vec<&Type> = fields.iter().map(|f| &f.ty).collect(); in derive_offsets_or_error()
77 let field_vis: Vec<&Visibility> = fields.iter().map(|f| &f.vis).collect(); in derive_offsets_or_error()
/openbmc/linux/rust/kernel/
H A Dstr.rs6 use alloc::vec::Vec;
548 buf: Vec<u8>,
561 let mut buf = Vec::try_with_capacity(size)?; in try_from_fmt()
600 let mut buf = Vec::new(); in try_from()
H A Dprelude.rs18 pub use alloc::{boxed::Box, vec::Vec};
/openbmc/openbmc/poky/meta/recipes-devtools/rust/files/
H A Drepro-issue-fix-with-cc-crate-hashmap.patch15 pub(crate) fn objects_from_files(files: &[Arc<Path>], dst: &Path) -> Result<Vec<Object>, Error> {
16 let mut objects = Vec::with_capacity(files.len());
58 pub(crate) fn objects_from_files(files: &[Arc<Path>], dst: &Path) -> Result<Vec<Object>, Error> {
59 let mut objects = Vec::with_capacity(files.len());
64 …-277,10 +278,29 @@ pub(crate) fn objects_from_files(files: &[Arc<Path>], dst: &Path) -> Result<Vec<
/openbmc/openbmc/meta-openembedded/meta-oe/recipes-graphics/deqp-runner/deqp-runner/
H A D0001-deqp-runner-drop-zstd-support.patch134 let mut lines: Vec<String> = Vec::new();

12