#[doc(hidden)]pub fn borrow_value_mut<T: TypedExternal>(cell: &RefCell<T>) -> RefMut<'_, T>Expand description
Borrow a stored value exclusively for a generated wrapper: the R error of
class miniextendr_borrow_conflict while a running call holds it.
The borrow may change the value, so it drops the value’s cached field
values (#[r_data(cache)], #2271) when T has any: every exclusive
borrow of an ExternalPtr’s value goes through here.