Enum dioxus_debug_cell::BorrowState
source · pub enum BorrowState {
Reading,
Writing,
Unused,
}
Expand description
An enumeration of values returned from the state
method on a RefCell<T>
.
Variants§
Reading
The cell is currently being read, there is at least one active borrow
.
Writing
The cell is currently being written to, there is an active borrow_mut
.
Unused
There are no outstanding borrows on this cell.
Trait Implementations§
source§impl Clone for BorrowState
impl Clone for BorrowState
source§fn clone(&self) -> BorrowState
fn clone(&self) -> BorrowState
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for BorrowState
impl Debug for BorrowState
source§impl PartialEq<BorrowState> for BorrowState
impl PartialEq<BorrowState> for BorrowState
source§fn eq(&self, other: &BorrowState) -> bool
fn eq(&self, other: &BorrowState) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for BorrowState
impl Eq for BorrowState
impl StructuralEq for BorrowState
impl StructuralPartialEq for BorrowState
Auto Trait Implementations§
impl RefUnwindSafe for BorrowState
impl Send for BorrowState
impl Sync for BorrowState
impl Unpin for BorrowState
impl UnwindSafe for BorrowState
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