pub enum OwnershipState {
Owned,
Borrowed(BorrowKind),
Moved,
Uninitialized,
}Variants§
Trait Implementations§
Source§impl Clone for OwnershipState
impl Clone for OwnershipState
Source§fn clone(&self) -> OwnershipState
fn clone(&self) -> OwnershipState
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 moreSource§impl Debug for OwnershipState
impl Debug for OwnershipState
Source§impl PartialEq for OwnershipState
impl PartialEq for OwnershipState
impl StructuralPartialEq for OwnershipState
Auto Trait Implementations§
impl Freeze for OwnershipState
impl RefUnwindSafe for OwnershipState
impl Send for OwnershipState
impl Sync for OwnershipState
impl Unpin for OwnershipState
impl UnwindSafe for OwnershipState
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