pub struct UPIntrFreeCell<T> {
inner: RefCell<T>,
}
Fields
inner: RefCell<T>
inner data
Implementations
sourceimpl<T> UPIntrFreeCell<T>
impl<T> UPIntrFreeCell<T>
pub unsafe fn new(value: T) -> Self
sourcepub fn exclusive_access(&self) -> UPIntrRefMut<'_, T>
pub fn exclusive_access(&self) -> UPIntrRefMut<'_, T>
Panic if the data has been borrowed.
pub fn exclusive_session<F, V>(&self, f: F) -> V where
F: FnOnce(&mut T) -> V,
Trait Implementations
impl<T> Sync for UPIntrFreeCell<T>
Auto Trait Implementations
impl<T> !RefUnwindSafe for UPIntrFreeCell<T>
impl<T> Send for UPIntrFreeCell<T> where
T: Send,
impl<T> Unpin for UPIntrFreeCell<T> where
T: Unpin,
impl<T> UnwindSafe for UPIntrFreeCell<T> where
T: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more