pub enum InplaceMode {
Disallow,
Allow,
}Expand description
Permission to attempt in-place structural mutation along an owned path.
Allow still requires unique ownership; it does not grant permission to
modify a borrowed value. Use an owned value or an engine-issued
InplaceValue with the mode-aware mutation helpers.
Variants§
Disallow
Use ordinary mutation, including for uniquely owned values.
Allow
Permit reuse when ownership and alias checks allow it.
Trait Implementations§
Source§impl Clone for InplaceMode
impl Clone for InplaceMode
Source§fn clone(&self) -> InplaceMode
fn clone(&self) -> InplaceMode
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for InplaceMode
Source§impl Debug for InplaceMode
impl Debug for InplaceMode
Source§impl Default for InplaceMode
impl Default for InplaceMode
Source§fn default() -> InplaceMode
fn default() -> InplaceMode
Returns the “default value” for a type. Read more
impl Eq for InplaceMode
Source§impl PartialEq for InplaceMode
impl PartialEq for InplaceMode
Source§fn eq(&self, other: &InplaceMode) -> bool
fn eq(&self, other: &InplaceMode) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for InplaceMode
Auto Trait Implementations§
impl Freeze for InplaceMode
impl RefUnwindSafe for InplaceMode
impl Send for InplaceMode
impl Sync for InplaceMode
impl Unpin for InplaceMode
impl UnsafeUnpin for InplaceMode
impl UnwindSafe for InplaceMode
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