1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
//! The value in effect of a key, and its source.
/// The value in effect of a key, and where it comes from.
///
/// A read takes the first source that gives a value, in this order:
///
/// 1. [`Forced`](Lookup::Forced): an override of the handle that applies
/// whether the file sets the key or not.
/// 2. [`File`](Lookup::File): the value of the file.
/// 3. [`Fallback`](Lookup::Fallback): an override of the handle that applies
/// when the file does not set the key.
/// 4. [`Default`](Lookup::Default): the built-in default of the key.
///
/// `OpenOptions::force`, `OpenOptions::fallback`, and
/// `CreateOptions::fallback` set the overrides of a handle. The reads of
/// `RepoConfig` apply them. A [`ConfigView`](super::ConfigView), a
/// [`Section`](super::Section), and a `RepoConfig` with no handle, such as
/// the result of `RepoConfig::parse`, have no override, so their reads give
/// [`File`](Lookup::File) or [`Default`](Lookup::Default).