Searched refs:alloc_err (Results 1 – 2 of 2) sorted by relevance
/system/keymint/common/src/ |
D | lib.rs | 81 macro_rules! alloc_err { macro 116 Err(_e) => Err($crate::alloc_err!($len)), 127 kmr_wire::vec_try_fill_with_alloc_err($elem, $len, || $crate::alloc_err!($len)) 130 kmr_wire::vec_try4_with_alloc_err($x1, $x2, $x3, $x4, || $crate::alloc_err!(4)) 133 kmr_wire::vec_try3_with_alloc_err($x1, $x2, $x3, || $crate::alloc_err!(3)) 136 kmr_wire::vec_try2_with_alloc_err($x1, $x2, || $crate::alloc_err!(2)) 139 kmr_wire::vec_try1_with_alloc_err($x1, || $crate::alloc_err!(1))
|
/system/keymint/wire/src/ |
D | lib.rs | 66 alloc_err: fn() -> E, in vec_try_fill_with_alloc_err() 69 v.try_reserve(len).map_err(|_e| alloc_err())?; in vec_try_fill_with_alloc_err() 81 alloc_err: fn() -> E, in vec_try4_with_alloc_err() 85 Err(_e) => Err(alloc_err()), in vec_try4_with_alloc_err() 102 alloc_err: fn() -> E, in vec_try3_with_alloc_err() 106 Err(_e) => Err(alloc_err()), in vec_try3_with_alloc_err() 120 alloc_err: fn() -> E, in vec_try2_with_alloc_err() 124 Err(_e) => Err(alloc_err()), in vec_try2_with_alloc_err() 134 pub fn vec_try1_with_alloc_err<T: Clone, E>(x1: T, alloc_err: fn() -> E) -> Result<Vec<T>, E> { in vec_try1_with_alloc_err() 137 Err(_e) => Err(alloc_err()), in vec_try1_with_alloc_err()
|