Skip to main content

describe_via_components

Function describe_via_components 

Source
pub fn describe_via_components(
    summary: &&str,
    role: &dyn RawKeySpecifierComponent,
    extra_keys: &&[&str],
    extra_info: &[&dyn KeySpecifierComponent],
) -> Result<KeyPathInfo, Bug>
Expand description

Build a KeyPathInfo given the information about a key specifier

Calling pattern, to minimise macro-generated machine code, is similar arti_path_from_components.

The macro-generated code parses the path into its KeySpecifier impl (as an owned value) and then feeds references to the various fields to describe_via_components.