Struct cretonne_codegen::settings::detail::Template [] [src]

pub struct Template {
    pub name: &'static str,
    pub descriptors: &'static [Descriptor],
    pub enumerators: &'static [&'static str],
    pub hash_table: &'static [u16],
    pub defaults: &'static [u8],
    pub presets: &'static [(u8, u8)],
}

An instruction group template.

Fields

Name of the instruction group.

List of setting descriptors.

Union of all enumerators.

Hash table of settings.

Default values.

Pairs of (mask, value) for presets.

Methods

impl Template
[src]

Important traits for &'a mut [u8]
[src]

Get enumerators corresponding to a Details::Enum.

[src]

Format a setting value as a TOML string. This is mostly for use by the generated Display implementation.

Trait Implementations

Auto Trait Implementations

impl Send for Template

impl Sync for Template