pub enum OwnershipErrorKind {
UseAfterMove {
variable: String,
},
UseAfterMaybeMove {
variable: String,
branch: String,
},
DoubleMoved {
variable: String,
},
}Variants§
UseAfterMove
Use after move
UseAfterMaybeMove
Use after potential move (in conditional)
DoubleMoved
Double move
Trait Implementations§
Source§impl Clone for OwnershipErrorKind
impl Clone for OwnershipErrorKind
Source§fn clone(&self) -> OwnershipErrorKind
fn clone(&self) -> OwnershipErrorKind
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for OwnershipErrorKind
impl RefUnwindSafe for OwnershipErrorKind
impl Send for OwnershipErrorKind
impl Sync for OwnershipErrorKind
impl Unpin for OwnershipErrorKind
impl UnwindSafe for OwnershipErrorKind
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