pub enum OmitWhen {
AuditedConstant,
Empty,
Elements(&'static str),
Matches(GffLabel),
}Expand description
The equality test an omission is decided by.
Variants§
AuditedConstant
The engine’s own absent-value for this field.
Empty
An empty container.
Elements(&'static str)
Elements the writer leaves out, so what it produces is a shorter list than the one it read.
Distinct from Empty: whether to write the label at all
and which elements go in it are different questions. A faction table is
the case. CFactionManager::SaveReputations emits a RepList entry
only for a pair that is not at the friendly baseline, and a
toolset-authored .fac carries entries that are, so reading one and
writing it back produces fewer elements without losing anything: an
entry at the baseline overrides the baseline with itself.
Carries the test in words rather than a predicate. The filter runs on the typed element, where the value it tests is reachable, and nothing here holds one.
Matches(GffLabel)
The resolved value of the named sibling this field chains off.