pub enum SchemaShape {
SingleForm,
Union,
}Expand description
Whether one schema serves one reading of a file or two.
Decides how a corpus’s silence about a label should be read, which is not something the census can work out for itself and has now been gotten wrong twice by callers deciding it inline.
Variants§
SingleForm
One reader, so a label absent from every file is a fallback that runs on every file.
UTE’s runtime-tracking block is the case that pins this: twelve fields
absent from all 133 vanilla .ute files, and live on all 133.
Union
Two readings picked at read time, with the corpora separating them.
A label the corpus never carries belongs to the other reading, so its
fallback is not one this corpus runs. GIT is the case: a static
placement carries TemplateResRef and a saved snapshot does not, and
scoring the label against saved objects rates it 100% absent over tens
of thousands of objects that never ask for it.
Trait Implementations§
Source§impl Clone for SchemaShape
impl Clone for SchemaShape
Source§fn clone(&self) -> SchemaShape
fn clone(&self) -> SchemaShape
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for SchemaShape
impl Debug for SchemaShape
Source§impl PartialEq for SchemaShape
impl PartialEq for SchemaShape
Source§fn eq(&self, other: &SchemaShape) -> bool
fn eq(&self, other: &SchemaShape) -> bool
self and other values to be equal, and is used by ==.