Skip to main content

instance_call

Function instance_call 

Source
pub fn instance_call(
    recv: &Value,
    method: &str,
    args: Vec<Value>,
) -> Result<Value, String>
Expand description

Dispatch a method on a Console instance: install the instance’s streams as the active output sink, run the same formatting/state logic the free functions use, then restore the previous sink.