Skip to main content

register

Function register 

Source
pub fn register(
    b: &mut FeatureBuilder<'_>,
    owner: &FeatureName,
) -> Result<(), BuildError>
Expand description

Registers \eqref: peer declarations (PeerName) of the references feature’s resolutions table and value names, the element and its element type’s text, and its two rules.

The peer declarations that the recomposition rule also needs (the latex-recomposed backend and the macro and raw constructs) are made by the feature’s latex module, so a registry without the LaTeX features sets this rule aside (excludes it from rule selection) with the others.

§Errors

Returns the BuildError the feature builder raises, for instance for an element or a rule already registered under the same name.