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§
- Method
Return Builder - Builder for generating R method body lines with appropriate return handling.
- Return
Tails 🔒 - Class-specific tail closures, one per
ReturnStrategyvariant.
Enums§
- Return
Strategy - 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.