Home
last modified time | relevance | path

Searched refs:get_or_try_to_insert_with (Results 1 – 2 of 2) sorted by relevance

/system/security/keystore2/src/
Dtry_insert.rs43 fn get_or_try_to_insert_with<E, F: FnOnce() -> Result<Self::Item, E>>( in get_or_try_to_insert_with() method
51 fn get_or_try_to_insert_with<E, F: FnOnce() -> Result<Self::Item, E>>( in get_or_try_to_insert_with() method
83 assert_eq!(x.get_or_try_to_insert_with(fails), Err("fail".to_string())); in test()
85 assert_eq!(*x.get_or_try_to_insert_with(succeeds).unwrap(), 99); in test()
88 assert_eq!(*x.get_or_try_to_insert_with(fails).unwrap(), 42); in test()
90 assert_eq!(*x.get_or_try_to_insert_with(succeeds).unwrap(), 42); in test()
92 *x.get_or_try_to_insert_with(fails).unwrap() = 2; in test()
94 *x.get_or_try_to_insert_with(succeeds).unwrap() = 3; in test()
97 *x.get_or_try_to_insert_with(succeeds).unwrap() = 5; in test()
Dsuper_key.rs890 .get_or_try_to_insert_with(|| { in unlock_screen_lock_bound_key()
902 .get_or_try_to_insert_with(|| { in unlock_screen_lock_bound_key()