moon/fory Apache Fory · MoonBit

API · enum

OnClash

Configuration · defined at config.mbt:106

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

VariantMeaning
Ignore

Take one of them silently: the one wins says.

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.