Enum resymgen::Check

source ·
pub enum Check {
    ExplicitVersions,
    CompleteVersionList,
    NonEmptyMaps,
    UniqueSymbols,
    UniqueSymbolsAcrossSubregions,
    InBoundsSymbols,
    NoOverlap,
    FunctionNames(NamingConvention),
    DataNames(NamingConvention),
}
Expand description

Checks that can be run on resymgen YAML symbol tables.

Variants

ExplicitVersions

All addresses and lengths (for both blocks and symbols) must be explicitly listed by version.

CompleteVersionList

Any version used within a version-dependent address or length, or within a subregion version list, must appear in the version list of the parent block.

NonEmptyMaps

YAML maps (key-value pair lists) must have at least one entry.

UniqueSymbols

Symbol and subregion names within a block must be unique.

UniqueSymbolsAcrossSubregions

Symbol names must be unique within a block and all its subregions.

InBoundsSymbols

Symbols and subregions must fall within the address range of the parent block.

NoOverlap

For a given block and version, function symbols must not overlap with each other, and subregions must not overlap with other subregions, function symbols, or data symbols.

FunctionNames(NamingConvention)

Function symbol names must adhere to the specified NamingConvention.

DataNames(NamingConvention)

Data symbol names must adhere to the specified NamingConvention.

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
Converts the given value to a String. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.