pub fn result_method(
receiver: &Value,
method: &str,
args: &[Value],
line: u32,
) -> Result<Option<Value>, BopError>Expand description
Pure Result method dispatch. Handles is_ok, is_err,
unwrap, expect, unwrap_or — the combinators whose
implementation doesn’t need to invoke a user callable.
Returns Ok(Some(value)) when the method name matched,
Ok(None) when it didn’t (so the caller falls through to
the callable-taking Result methods, then to the standard
dispatcher). Assumes receiver is already known to be a
built-in Result — callers check is_builtin_result first.