pub enum BareOverwrite {
Scalar(ScalarKind),
Container(&'static str),
}Expand description
What a bare VALUE would overwrite, and the --value-type that would keep
it — see guard_bare_overwrite.
Variants§
Scalar(ScalarKind)
A scalar of a different kind: the type changes.
Container(&'static str)
A whole array or object: the container is discarded.
Implementations§
Source§impl BareOverwrite
impl BareOverwrite
Trait Implementations§
Source§impl Clone for BareOverwrite
impl Clone for BareOverwrite
Source§fn clone(&self) -> BareOverwrite
fn clone(&self) -> BareOverwrite
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 BareOverwrite
Source§impl Debug for BareOverwrite
impl Debug for BareOverwrite
impl Eq for BareOverwrite
Source§impl PartialEq for BareOverwrite
impl PartialEq for BareOverwrite
impl StructuralPartialEq for BareOverwrite
Auto Trait Implementations§
impl Freeze for BareOverwrite
impl RefUnwindSafe for BareOverwrite
impl Send for BareOverwrite
impl Sync for BareOverwrite
impl Unpin for BareOverwrite
impl UnsafeUnpin for BareOverwrite
impl UnwindSafe for BareOverwrite
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.