pub(super) struct HandleCell {
handle: RefCell<Option<Handle>>,
depth: Cell<usize>,
}
Fields§
§handle: RefCell<Option<Handle>>
Current handle
depth: Cell<usize>
Tracks the number of nested calls to try_set_current
.
Implementations§
source§impl HandleCell
impl HandleCell
pub(super) const fn new() -> HandleCell
Auto Trait Implementations§
impl !Freeze for HandleCell
impl !RefUnwindSafe for HandleCell
impl Send for HandleCell
impl !Sync for HandleCell
impl Unpin for HandleCell
impl !UnwindSafe for HandleCell
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more