Every enumerated value is a string-literal union rather than a numeric enum or a
bare string. A union is what an editor completes as you type and what the
compiler rejects a misspelling against; string accepts anything and finds the
mistake at render time, and a numeric enum costs an import at every call site to
name a value that is already a word.
The values are the CSS spellings, because that is the vocabulary the layout rules
come from and the one a caller already knows. Each union carries exactly the
variants its Rust counterpart in meo-canvas-scene carries, spelling for
spelling: the scene crate is the contract, and a value this file accepts that the
decoder does not know is a render-time error dressed up as a compile-time
success.
The type vocabulary a scene is described in.
Every enumerated value is a string-literal union rather than a numeric enum or a bare
string. A union is what an editor completes as you type and what the compiler rejects a misspelling against;stringaccepts anything and finds the mistake at render time, and a numeric enum costs an import at every call site to name a value that is already a word.The values are the CSS spellings, because that is the vocabulary the layout rules come from and the one a caller already knows. Each union carries exactly the variants its Rust counterpart in
meo-canvas-scenecarries, spelling for spelling: the scene crate is the contract, and a value this file accepts that the decoder does not know is a render-time error dressed up as a compile-time success.