Skip to main content

register

Function register 

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

Registers the construct elements flm.pres.text.flush-right and flm.pres.text.ruled with their payload types. The text feature (super::TextBackend) calls this from its own registration; a second registration in one registry declares the elements twice and fails the build.

§Errors

Returns the BuildError the feature builder raises for a presentation element already declared in this registry.