Skip to main content

field_default_value

Function field_default_value 

Source
pub fn field_default_value(
    init: &Expr,
    expected: &TypeRef,
    types: &HashMap<String, Arc<TypeDecl>>,
) -> Result<DefaultValue, DefaultReason>
Expand description

The DefaultValue of a field’s default init, given the field’s expected type and the visible types table. Err for anything not closed-form; the checker has already required every default to have one.