Home
last modified time | relevance | path

Searched refs:ArrayVec (Results 1 – 25 of 69) sorted by relevance

123

/external/rust/android-crates-io/crates/arrayvec/tests/
Dtests.rs4 use arrayvec::ArrayVec;
16 let mut vec: ArrayVec<Vec<i32>, 3> = ArrayVec::new(); in test_simple()
32 let mut vec: ArrayVec<usize, 4> = ArrayVec::new(); in test_capacity_left()
46 let mut vec: ArrayVec<usize, 10> = ArrayVec::new(); in test_extend_from_slice()
57 let mut vec: ArrayVec<usize, 10> = ArrayVec::new(); in test_extend_from_slice_error()
63 let mut vec: ArrayVec<usize, 0> = ArrayVec::new(); in test_extend_from_slice_error()
70 use arrayvec::ArrayVec; in test_try_from_slice_error()
73 let res: Result<ArrayVec<_, 2>, _> = (&[1, 2, 3] as &[_]).try_into(); in test_try_from_slice_error()
80 let mut vec: ArrayVec<_, N> = ArrayVec::new(); in test_u16_index()
90 let mut iter = ArrayVec::from([1, 2, 3]).into_iter(); in test_iter()
[all …]
Dserde.rs6 use arrayvec::ArrayVec;
12 let vec = ArrayVec::<u32, 0>::new(); in test_ser_de_empty()
23 let mut vec = ArrayVec::<u32, 3>::new(); in test_ser_de()
39 assert_de_tokens_error::<ArrayVec<u32, 2>>(&[ in test_de_too_large()
Dborsh.rs20 use arrayvec::ArrayVec;
25 let vec = ArrayVec::<u32, 0>::new(); in test_empty()
32 let mut vec = ArrayVec::<u32, 3>::new(); in test_full()
42 let mut vec = ArrayVec::<u32, 3>::new(); in test_with_free_capacity()
/external/rust/android-crates-io/crates/arrayvec/src/
Darrayvec.rs43 pub struct ArrayVec<T, const CAP: usize> { struct
49 impl<T, const CAP: usize> Drop for ArrayVec<T, CAP> { implementation
64 impl<T, const CAP: usize> ArrayVec<T, CAP> { impl
83 pub fn new() -> ArrayVec<T, CAP> { in new()
86 ArrayVec { xs: MaybeUninit::uninit().assume_init(), len: 0 } in new()
99 pub const fn new_const() -> ArrayVec<T, CAP> { in new_const()
101 ArrayVec { xs: MakeMaybeUninit::ARRAY, len: 0 } in new_const()
476 v: &'a mut ArrayVec<T, CAP>, in retain()
710 impl<T, const CAP: usize> ArrayVecImpl for ArrayVec<T, CAP> { implementation
730 impl<T, const CAP: usize> Deref for ArrayVec<T, CAP> { implementation
[all …]
/external/cronet/tot/third_party/rust/chromium_crates_io/vendor/tinyvec-1.8.0/src/
Darrayvec.rs33 let mut av: $crate::ArrayVec<$array_type> = Default::default();
39 $crate::ArrayVec::<$array_type>::default()
45 $crate::ArrayVec::from([$elem; $n])
106 pub struct ArrayVec<A> { struct
111 impl<A> Clone for ArrayVec<A> argument
141 impl<A> Copy for ArrayVec<A> implementation
148 impl<A: Array> Default for ArrayVec<A> { implementation
155 impl<A: Array> Deref for ArrayVec<A> { implementation
164 impl<A: Array> DerefMut for ArrayVec<A> { implementation
172 impl<A: Array, I: SliceIndex<[A::Item]>> Index<I> for ArrayVec<A> { implementation
[all …]
/external/cronet/stable/third_party/rust/chromium_crates_io/vendor/tinyvec-1.8.0/src/
Darrayvec.rs33 let mut av: $crate::ArrayVec<$array_type> = Default::default();
39 $crate::ArrayVec::<$array_type>::default()
45 $crate::ArrayVec::from([$elem; $n])
106 pub struct ArrayVec<A> { struct
111 impl<A> Clone for ArrayVec<A> implementation
141 impl<A> Copy for ArrayVec<A> implementation
148 impl<A: Array> Default for ArrayVec<A> { implementation
155 impl<A: Array> Deref for ArrayVec<A> { implementation
164 impl<A: Array> DerefMut for ArrayVec<A> { implementation
172 impl<A: Array, I: SliceIndex<[A::Item]>> Index<I> for ArrayVec<A> { implementation
[all …]
/external/rust/android-crates-io/crates/tinyvec/tests/
Darrayvec.rs10 let mut expected: ArrayVec<[i32; 4]> = Default::default(); in test_a_vec()
31 let mut av: ArrayVec<[i32; 4]> = Default::default(); in ArrayVec_push_pop()
65 let mut av: ArrayVec<[i32; 0]> = Default::default(); in ArrayVec_push_overflow()
73 let mut av: ArrayVec<[i32; 4]> = Default::default(); in ArrayVec_formatting()
85 let av: ArrayVec<[i32; 4]> = Default::default(); in ArrayVec_formatting()
92 let av: ArrayVec<[f32; 4]> = Default::default(); in ArrayVec_formatting()
96 let av: ArrayVec<[&'static str; 4]> = Default::default(); in ArrayVec_formatting()
113 let mut av2: ArrayVec<[i32; 4]> = av.clone().into_iter().collect(); in ArrayVec_iteration()
137 let mut av: ArrayVec<[i32; 10]> = Default::default(); in ArrayVec_remove()
148 let mut av: ArrayVec<[i32; 1]> = Default::default(); in ArrayVec_remove_invalid()
[all …]
/external/cronet/tot/third_party/rust/chromium_crates_io/vendor/tinyvec-1.8.0/tests/
Darrayvec.rs11 let mut expected: ArrayVec<[i32; 4]> = Default::default(); in test_a_vec()
32 let mut av: ArrayVec<[i32; 4]> = Default::default(); in ArrayVec_push_pop()
66 let mut av: ArrayVec<[i32; 0]> = Default::default(); in ArrayVec_push_overflow()
74 let mut av: ArrayVec<[i32; 4]> = Default::default(); in ArrayVec_formatting()
86 let av: ArrayVec<[i32; 4]> = Default::default(); in ArrayVec_formatting()
93 let av: ArrayVec<[f32; 4]> = Default::default(); in ArrayVec_formatting()
97 let av: ArrayVec<[&'static str; 4]> = Default::default(); in ArrayVec_formatting()
114 let mut av2: ArrayVec<[i32; 4]> = av.clone().into_iter().collect(); in ArrayVec_iteration()
138 let mut av: ArrayVec<[i32; 10]> = Default::default(); in ArrayVec_remove()
149 let mut av: ArrayVec<[i32; 1]> = Default::default(); in ArrayVec_remove_invalid()
[all …]
/external/cronet/stable/third_party/rust/chromium_crates_io/vendor/tinyvec-1.8.0/tests/
Darrayvec.rs11 let mut expected: ArrayVec<[i32; 4]> = Default::default(); in test_a_vec()
32 let mut av: ArrayVec<[i32; 4]> = Default::default(); in ArrayVec_push_pop()
66 let mut av: ArrayVec<[i32; 0]> = Default::default(); in ArrayVec_push_overflow()
74 let mut av: ArrayVec<[i32; 4]> = Default::default(); in ArrayVec_formatting()
86 let av: ArrayVec<[i32; 4]> = Default::default(); in ArrayVec_formatting()
93 let av: ArrayVec<[f32; 4]> = Default::default(); in ArrayVec_formatting()
97 let av: ArrayVec<[&'static str; 4]> = Default::default(); in ArrayVec_formatting()
114 let mut av2: ArrayVec<[i32; 4]> = av.clone().into_iter().collect(); in ArrayVec_iteration()
138 let mut av: ArrayVec<[i32; 10]> = Default::default(); in ArrayVec_remove()
149 let mut av: ArrayVec<[i32; 1]> = Default::default(); in ArrayVec_remove_invalid()
[all …]
/external/rust/android-crates-io/crates/tinyvec/src/
Darrayvec.rs33 let mut av: $crate::ArrayVec<$array_type> = Default::default();
39 $crate::ArrayVec::<$array_type>::default()
45 $crate::ArrayVec::from([$elem; $n])
104 pub struct ArrayVec<A> { struct
109 impl<A> Clone for ArrayVec<A> argument
139 impl<A> Copy for ArrayVec<A> implementation
146 impl<A: Array> Default for ArrayVec<A> { implementation
152 impl<A: Array> Deref for ArrayVec<A> { implementation
161 impl<A: Array> DerefMut for ArrayVec<A> { implementation
169 impl<A: Array, I: SliceIndex<[A::Item]>> Index<I> for ArrayVec<A> { implementation
[all …]
/external/rust/android-crates-io/crates/arrayvec/benches/
Dextend.rs7 use arrayvec::ArrayVec;
13 let mut v = ArrayVec::<u8, 512>::new(); in extend_with_constant()
25 let mut v = ArrayVec::<u8, 512>::new(); in extend_with_range()
37 let mut v = ArrayVec::<u8, 512>::new(); in extend_with_slice()
49 let mut v = ArrayVec::<u8, 512>::new(); in extend_with_write()
60 let mut v = ArrayVec::<u8, 512>::new(); in extend_from_slice()
/external/rust/android-crates-io/crates/der/src/
Darrayvec.rs9 pub(crate) struct ArrayVec<T, const N: usize> { struct
17 impl<T, const N: usize> ArrayVec<T, N> { impl
72 impl<T, const N: usize> AsRef<[Option<T>]> for ArrayVec<T, N> { implementation
78 impl<T, const N: usize> AsMut<[Option<T>]> for ArrayVec<T, N> { implementation
84 impl<T, const N: usize> Default for ArrayVec<T, N> { implementation
132 use super::ArrayVec;
137 let mut vec = ArrayVec::<u8, 3>::new(); in add()
/external/rust/android-crates-io/crates/arrayvec/
DCHANGELOG.md12 - Move length field before before data in ArrayVec and ArrayString by @JakkuSakura [#255](https://g…
47 - Add new ArrayVec methods `.take()` and `.into_inner_unchecked()` by @conradludgate
65 - The ``ArrayVec::new`` and ``ArrayString::new`` constructors are properly
80 The New type syntax is `ArrayVec<T, CAP>` where `CAP` is the arrayvec capacity.
84 of the `ArrayVec` or `ArrayString` structs for the same capacity may grow
98 - Add `is_empty` methods for ArrayVec and ArrayString by @nicbn
99 - Implement `TryFrom<Slice>` for ArrayVec by @paulkernfeld
109 - Add `as_ptr`, `as_mut_ptr` accessors directly on the `ArrayVec` by @tbu-
115 uninitialized everywhere relevant in the ArrayVec implementation
118 - `ArrayVec::dispose` is now deprecated (it has no purpose anymore)
[all …]
/external/rust/beto-rust/nearby/presence/np_adv/src/extended/serialize/section/
Dheader.rs33 header_bytes: tinyvec::ArrayVec<[u8; SECTION_HEADER_MAX_LEN]>,
38 let mut header_bytes = tinyvec::ArrayVec::new(); in unencrypted()
44 let mut header_bytes = tinyvec::ArrayVec::new(); in encrypted_mic_short_salt()
55 let mut header_bytes = tinyvec::ArrayVec::new(); in encrypted_mic_extended_salt()
66 let mut header_bytes = tinyvec::ArrayVec::new(); in encrypted_signature_extended_salt()
/external/rust/android-crates-io/crates/etherparse/src/transport/
Dicmpv4_header.rs2 use arrayvec::ArrayVec;
123 pub fn to_bytes(&self) -> ArrayVec<u8, { Icmpv4Header::MAX_LEN }> { in to_bytes()
126 |type_u8: u8, code_u8: u8| -> ArrayVec<u8, { Icmpv4Header::MAX_LEN }> {
129 let mut re = ArrayVec::from([
147 -> ArrayVec<u8, { Icmpv4Header::MAX_LEN }> {
152 let mut re = ArrayVec::from([
169 -> ArrayVec<u8, { Icmpv4Header::MAX_LEN }> {
172 let mut re = ArrayVec::from([
188 -> ArrayVec<u8, { Icmpv4Header::MAX_LEN }> {
195 ArrayVec::from([
[all …]
Dicmpv6_header.rs2 use arrayvec::ArrayVec;
117 pub fn to_bytes(&self) -> ArrayVec<u8, { Icmpv6Header::MAX_LEN }> { in to_bytes()
121 |type_u8: u8, code_u8: u8| -> ArrayVec<u8, { Icmpv6Header::MAX_LEN }> {
123 let mut re = ArrayVec::from([
147 -> ArrayVec<u8, { Icmpv6Header::MAX_LEN }> {
149 let mut re = ArrayVec::from([
200 use arrayvec::ArrayVec;
458 …let with_5to8_bytes = |type_u8: u8, code_u8: u8, bytes5to8: [u8;4]| -> ArrayVec<u8, { Icmpv6Header…
459 let mut bytes = ArrayVec::<u8, { Icmpv6Header::MAX_LEN }>::new();
467 … let simple_bytes = |type_u8: u8, code_u8: u8| -> ArrayVec<u8, { Icmpv6Header::MAX_LEN }> {
/external/rust/beto-rust/nearby/presence/np_adv/src/legacy/serialize/
Dheader.rs25 header_bytes: tinyvec::ArrayVec<[u8; ADV_HEADER_MAX_LEN]>,
30 let header_bytes = tinyvec::ArrayVec::new(); in unencrypted()
35 let mut header_bytes = tinyvec::ArrayVec::new(); in ldt_short_salt()
/external/rust/beto-rust/nearby/crypto/crypto_provider/src/
Dp256.rs15 use tinyvec::ArrayVec;
59 ) -> ArrayVec<[u8; P256_PUBLIC_KEY_MAX_LENGTH]>; in to_sec1_bytes()
71 type EncodedPublicKey = ArrayVec<[u8; P256_PUBLIC_KEY_MAX_LENGTH]>;
/external/rust/android-crates-io/crates/taffy/src/util/
Dsys.rs132 pub(crate) type Vec<A> = arrayvec::ArrayVec<A, MAX_NODE_COUNT>;
134 pub(crate) type ChildrenVec<A> = arrayvec::ArrayVec<A, MAX_CHILD_COUNT>;
137 pub(crate) type GridTrackVec<A> = arrayvec::ArrayVec<A, MAX_GRID_TRACKS>;
143 …te) fn new_vec_with_capacity<A, const CAP: usize>(_capacity: usize) -> arrayvec::ArrayVec<A, CAP> { in new_vec_with_capacity()
144 arrayvec::ArrayVec::new() in new_vec_with_capacity()
/external/rust/beto-rust/nearby/crypto/crypto_provider_rustcrypto/src/
Dp256.rs20 tinyvec::ArrayVec,
53 fn to_sec1_bytes(&self, point_compression: PointCompression) -> ArrayVec<[u8; 65]> { in to_sec1_bytes()
54 let mut bytes = ArrayVec::<[u8; 65]>::new();
92 type EncodedPublicKey = ArrayVec<[u8; 65]>;
/external/cronet/tot/third_party/rust/chromium_crates_io/vendor/tinyvec-1.8.0/
DCHANGELOG.md5 * [Fuuzetsu](https://github.com/Fuuzetsu) added the `ArrayVec::as_inner` method.
49 * [jeffa5](https://github.com/jeffa5) added arbitrary implementations for `TinyVec` and `ArrayVec` …
54 * [Cryptjar](https://github.com/Cryptjar) removed the `A:Array` bound on the struct of `ArrayVec<A:…
76 added `ArrayVec::into_inner` so that you can get the array out of an `ArrayVec`.
/external/cronet/stable/third_party/rust/chromium_crates_io/vendor/tinyvec-1.8.0/
DCHANGELOG.md5 * [Fuuzetsu](https://github.com/Fuuzetsu) added the `ArrayVec::as_inner` method.
49 * [jeffa5](https://github.com/jeffa5) added arbitrary implementations for `TinyVec` and `ArrayVec` …
54 * [Cryptjar](https://github.com/Cryptjar) removed the `A:Array` bound on the struct of `ArrayVec<A:…
76 added `ArrayVec::into_inner` so that you can get the array out of an `ArrayVec`.
/external/rust/android-crates-io/crates/vulkano/src/memory/allocator/
Dmod.rs222 use self::array_vec::ArrayVec;
654 pools: ArrayVec<Pool<S>, MAX_MEMORY_TYPES>,
656 block_sizes: ArrayVec<DeviceSize, MAX_MEMORY_HEAPS>,
659 export_handle_types: ArrayVec<ExternalMemoryHandleTypes, MAX_MEMORY_TYPES>,
778 let mut pools = ArrayVec::new(memory_types.len(), [Self::EMPTY_POOL; MAX_MEMORY_TYPES]); in new_unchecked()
787 let mut sizes = ArrayVec::new(memory_heaps.len(), [0; MAX_MEMORY_HEAPS]); in new_unchecked()
804 let mut types = ArrayVec::new( in new_unchecked()
1626 pub(super) struct ArrayVec<T, const N: usize> { struct
1631 impl<T, const N: usize> ArrayVec<T, N> { impl
1635 ArrayVec { len, data }
[all …]
/external/rust/android-crates-io/crates/tinyvec/
DCHANGELOG.md33 * [jeffa5](https://github.com/jeffa5) added arbitrary implementations for `TinyVec` and `ArrayVec` …
38 * [Cryptjar](https://github.com/Cryptjar) removed the `A:Array` bound on the struct of `ArrayVec<A:…
60 added `ArrayVec::into_inner` so that you can get the array out of an `ArrayVec`.
/external/rust/beto-rust/nearby/presence/np_adv/src/extended/serialize/
Dmod.rs153 adv: tinyvec::ArrayVec<[u8; BLE_5_ADV_SVC_MAX_CONTENT_LEN]>,
169 let mut adv = tinyvec::ArrayVec::new(); in new()
454 vec: tinyvec::ArrayVec<[T; N]>,
466 Some(Self { capacity, vec: tinyvec::ArrayVec::new() }) in new()
484 pub(crate) fn into_inner(self) -> tinyvec::ArrayVec<[T; N]> { in into_inner()

123