enum ReplaceOpt {
IgnoreDuplicate,
Override,
ErrorOnDuplicate,
}
Expand description
Describes how to handle conflicts in merging two TomlConfig
Variants§
IgnoreDuplicate
Silently ignore a duplicated value
Override
Override the current value, even if it’s Some
ErrorOnDuplicate
Exit with an error on duplicate values
Trait Implementations§
source§impl Clone for ReplaceOpt
impl Clone for ReplaceOpt
source§fn clone(&self) -> ReplaceOpt
fn clone(&self) -> ReplaceOpt
Returns a copy 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 ReplaceOpt
impl Debug for ReplaceOpt
impl Copy for ReplaceOpt
Auto Trait Implementations§
impl Freeze for ReplaceOpt
impl RefUnwindSafe for ReplaceOpt
impl Send for ReplaceOpt
impl Sync for ReplaceOpt
impl Unpin for ReplaceOpt
impl UnwindSafe for ReplaceOpt
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: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§impl<T> Pointable for T
impl<T> Pointable for T
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 1 byte
Size for each variant:
IgnoreDuplicate
: 0 bytesOverride
: 0 bytesErrorOnDuplicate
: 0 bytes