API · enum
OnClash
pub(all) enum OnClash[T] {
Ignore
Panic
Handle((T, T) -> T)
}What to do when the same setting is given twice, once in the record and once as a flat argument.
Variants
| Variant | Meaning |
|---|---|
Ignore | Take one of them silently: the one |
Panic | Refuse the call. |
Handle((T, T) -> T) | Let the caller decide. The pair is (the record's, the flat one's). |
Generated from src/pkg.generated.mbti and the doc comments beside this declaration.