Enum bootstrap::config::ReplaceOpt
source · 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 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
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