Skip to main content

check_this_and_fn

Function check_this_and_fn 

Source
fn check_this_and_fn(
    it: &mut Interp,
    this: &Value,
    f: &Value,
    what: &str,
) -> Result<(), Value>
Expand description

this がオブジェクトであること、f が関数であること(満たさなければ元のイテレータを閉じて TypeError)。