Skip to main content

define_field

Function define_field 

Source
pub fn define_field(
    class_val: &Value,
    name: &str,
    thunk: Value,
    name_anon: bool,
)
Expand description

Register an instance-field initializer thunk on a class (DEF_FIELD).