Searched refs:try_from_array (Results 1 – 7 of 7) sorted by relevance
/aosp_15_r20/external/rust/beto-rust/nearby/presence/np_adv/src/extended/data_elements/ |
D | mod.rs | 182 Self { info: ArrayView::try_from_array(array, 11).expect("length is fixed") } 193 Self { info: ArrayView::try_from_array(array, 6).expect("length is fixed") } 205 Self { info: ArrayView::try_from_array(array, 24).expect("length is fixed") } 240 Self { capability: ArrayView::try_from_array(array, 7).expect("length is fixed") }
|
/aosp_15_r20/external/rust/beto-rust/nearby/presence/np_adv/src/extended/serialize/ |
D | mod.rs | 400 ArrayView::try_from_array(buffer, 1).expect("1 is a valid length") in serialize() 433 ArrayView::try_from_array(buffer, 1 + chunks_written).expect("length is at most 6") in serialize() 436 ArrayView::try_from_array(buffer, 2).expect("2 is a valid length") in serialize()
|
/aosp_15_r20/external/rust/beto-rust/nearby/presence/array_view/src/ |
D | lib.rs | 57 pub fn try_from_array(array: [T; N], len: usize) -> Option<ArrayView<T, N>> { in try_from_array() method 118 &format!("{:?}", ArrayView::try_from_array([1, 2, 3, 4, 5], 2).unwrap()) in debug_only_shows_len_elements()
|
/aosp_15_r20/external/rust/beto-rust/nearby/presence/np_adv/src/extended/ |
D | mod.rs | 157 ArrayView::try_from_array(vec.into_inner(), len).expect("len is from original vec")
|
/aosp_15_r20/external/rust/beto-rust/nearby/presence/np_adv/src/legacy/serialize/ |
D | mod.rs | 280 .map(|_| ArrayView::try_from_array(self.buffer, self.len).expect("len is always valid")) in into_advertisement()
|
/aosp_15_r20/external/rust/beto-rust/nearby/presence/np_adv/src/filter/ |
D | mod.rs | 252 Ok(ArrayView::try_from_array(filter_actions, actions.len()) in new_from_slice()
|
/aosp_15_r20/external/rust/beto-rust/nearby/presence/np_adv/src/tests/ |
D | deser_v1_tests.rs | 368 ArrayView::try_from_array(array, rng.gen_range(0..=MAX_DE_LEN)).unwrap(); in random_de()
|