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.