Skip to main content

translate_native_construct_decorated

Function translate_native_construct_decorated 

Source
pub fn translate_native_construct_decorated(
    from: &str,
    rule: &str,
    to: &str,
    decorators: &DecoratorSet,
) -> Result<ConstructTranslation, DecoratorError>
Expand description

translate_native_construct after the concept-mapping decorators of decorators.

They see the result as { from, to, rule, relation, concept, rules } (rules joined by spaces): they may change the concept or the target rules, whose relation then follows from their number unless a decorator set it, and drop makes the construct unknown.

ยงErrors

A DecoratorError when a decorator sets an unknown relation.