dia_args/merge_option.rs
1/*
2==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--
3
4Dia-Args
5
6Copyright (C) 2018-2019, 2021-2024 Anonymous
7
8There are several releases over multiple years,
9they are listed as ranges, such as: "2018-2019".
10
11This program is free software: you can redistribute it and/or modify
12it under the terms of the GNU Lesser General Public License as published by
13the Free Software Foundation, either version 3 of the License, or
14(at your option) any later version.
15
16This program is distributed in the hope that it will be useful,
17but WITHOUT ANY WARRANTY; without even the implied warranty of
18MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19GNU Lesser General Public License for more details.
20
21You should have received a copy of the GNU Lesser General Public License
22along with this program. If not, see <https://www.gnu.org/licenses/>.
23
24::--::--::--::--::--::--::--::--::--::--::--::--::--::--::--::--
25*/
26
27//! # Merge option
28
29/// # Merge option
30///
31/// This enum is used for mering _options_ between 2 instances of [`Args`][struct:Args].
32///
33/// [struct:Args]: struct.Args.html
34#[derive(Debug, Eq, PartialEq, Hash)]
35pub enum MergeOption {
36
37 /// # Take all items from source, _overwriting_ target's
38 TakeAll,
39
40 /// # Take all items from source, _ignoring_ existing ones in target
41 IgnoreExisting,
42
43}