fill

Attribute Macro fill 

Source
#[fill]
Expand description

Invokes a portrait macro on the applied impl block.

§Usage

#[portrait::fill(path::to::filler)]
impl Trait for Type {
    // override filled items here
}

Pass the path to the filler macro in the attribute. Extra parameters can be specified in front of the path with the @ syntax, e.g.:

#[portrait::fill(@OPTION1(...) @OPTION2 path::to::filler(...))]

The (...) parts are optional arguments passed for the option or the filler. If the option/filler does not expect any arguments, the entire parentheses may be omitted.

§Special options

§DEBUG_PRINT_FILLER_OUTPUT

Syntax: @DEBUG_PRINT_FILLER_OUTPUT

Prints the output of the filler macro, used for filler macro developers to debug their code.

§MOD_PATH

Syntax: @MOD_PATH(path::to::name)

Specifies the derived module path if it is imported differently or overridden with name in #[make].