Skip to main content

struct_default_target

Function struct_default_target 

Source
pub fn struct_default_target(
    path: &[SmolStr],
    args: &[Expr],
    type_args: &[TypeExpr],
    span: Span,
    ctx: Ctx,
    state: &mut State<'_>,
) -> Option<u16>
Expand description

The struct S::default() names.

path is a struct (or a generic struct, instantiated at type_args) followed by default, and the call passes nothing. None leaves the path to the function lookups.