Skip to main content

for_version

Function for_version 

Source
pub fn for_version(
    version: SchemaVersion,
) -> Result<&'static Schema, NotBundled>
Expand description

The bundled schema for version.

This is the lookup a reader should use after parsing FILE_SCHEMA, so a release without tables becomes an explicit “cannot check this” rather than a silent fallback to the wrong tables.

§Errors

NotBundled when version’s release feature is off in this build. With default features every release is bundled and this never fails.