Home
last modified time | relevance | path

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

/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.rs408 impl<T> Vec<T> { argument
648 impl<T, A: Allocator> Vec<T, A> { implementation
3284 impl<T, A1, A2> PartialOrd<Vec<T, A2>> for Vec<T, A1> implementation
3322 impl<T> Default for Vec<T> { implementation
3326 fn default() -> Vec<T> { in default()
3327 Vec::new() in default()
3339 impl<T, A: Allocator> AsRef<Vec<T, A>> for Vec<T, A> { implementation
3346 impl<T, A: Allocator> AsMut<Vec<T, A>> for Vec<T, A> { implementation
3500 impl From<&str> for Vec<u8> { implementation
3515 type Error = Vec<T, A>;
[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>>,
H A Dinto_iter.rs361 super::Vec::new_in(Default::default()).into_iter() in default()
/openbmc/linux/rust/alloc/
H A Dslice.rs33 use crate::vec::Vec;
97 use crate::vec::Vec;
128 vec: &'a mut Vec<T, A>, in to_vec()
414 pub fn to_vec(&self) -> Vec<T> in to_vec()
496 return Vec::new(); in repeat()
710 type Output = Vec<T>;
725 type Output = Vec<T>;
748 type Output = Vec<T>;
822 type Owned = Vec<T>;
824 fn to_owned(&self) -> Vec<T> { in to_owned()
[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/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/openbmc/poky/meta/recipes-devtools/python/python3-maturin/
H A D0001-Add-32-bit-RISC-V-support.patch44 @@ -139,6 +141,7 @@ fn get_supported_architectures(os: &Os) -> Vec<Arch> {
52 @@ -158,6 +161,7 @@ fn get_supported_architectures(os: &Os) -> Vec<Arch> {
60 @@ -171,6 +175,7 @@ fn get_supported_architectures(os: &Os) -> Vec<Arch> {
/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 D0001-Revert-Map-source-absolute-paths-to-OUT_DIR-as-relat.patch35 let mut objects = Vec::new();