pub enum VarState {
Owned,
Moved,
MaybeMoved,
Borrowed,
}Expand description
Ownership state for a variable
Variants§
Owned
Variable is owned and can be used
Moved
Variable has been moved (Give)
MaybeMoved
Variable might be moved (conditional branch)
Borrowed
Variable is borrowed (Show) - still usable
Trait Implementations§
impl Copy for VarState
impl Eq for VarState
impl StructuralPartialEq for VarState
Auto Trait Implementations§
impl Freeze for VarState
impl RefUnwindSafe for VarState
impl Send for VarState
impl Sync for VarState
impl Unpin for VarState
impl UnwindSafe for VarState
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.