Skip to main content

synthesize_example

Function synthesize_example 

Source
pub fn synthesize_example(
    name: &str,
    params: &[TypedParam],
    return_type: Option<&TypeExpr>,
) -> String
Expand description

Synthesize a usage example from a function signature, for symbols whose docs carry no hand-written @example. LSP hover and harn graph --json present the result labeled as derived.