Skip to main content

method

Function method 

Source
pub fn method(
    interp: &Interp<'_>,
    name: &str,
    length: u32,
    func: NativeFn,
) -> JsResult<Value>
Expand description

A native function object, ready to be stored as a value.