pub enum BorrowState {
Available,
Unavailable,
}
Expand description
The BorrowState denotes whether a local is Available
or
has been moved and is Unavailable
.
Variants§
Available
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<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.