Skip to main content

Module method_return_builder

Module method_return_builder 

Source
Expand description

Shared utilities for handling method return values in R wrapper generation.

This module provides helpers for generating consistent return value handling across all class systems (Env, R6, S7, S3, S4).

Structs§

MethodReturnBuilder
Builder for generating R method body lines with appropriate return handling.
ReturnTails 🔒
Class-specific tail closures, one per ReturnStrategy variant.

Enums§

ReturnStrategy
Return handling strategy for class methods.

Functions§

error_in_r_check_lines
Generate the R guard that re-raises a tagged Rust error/condition value.
error_in_r_inline_block
Generate an inline R error-check block for single-expression contexts (S7, S4).
error_in_r_standalone_body
Generate a standalone-function R wrapper body for error_in_r mode.