Skip to main content

define_member

Function define_member 

Source
pub fn define_member(
    class_val: &Value,
    name: &str,
    kind: i64,
    is_static: bool,
    func: Value,
)
Expand description

Install a method / getter / setter on a class (DEF_MEMBER). kind is a member::* tag; is_static targets the constructor side.