pub fn generate_r6_r_wrapper(parsed_impl: &ParsedImpl) -> StringExpand description
Generates the complete R wrapper string for an R6-style class.
Produces an R6::R6Class(...) definition that includes:
initializemethod: calls the Rustnewconstructor, or accepts a pre-made.ptrwhen static methods returnSelf(factory pattern)- Public methods: one R function per
&self/&mut selfinstance method - Private methods: methods marked with
#[miniextendr(private)] - Active bindings: getter/setter properties via
#[miniextendr(r6(prop = "..."))] - Private
.ptrfield: holds theExternalPtrto the Rust struct - Finalizer: optional destructor called when the R6 object is garbage-collected
- Deep clone: optional custom clone logic via
#[miniextendr(r6(deep_clone))] - Static methods: emitted as
ClassName$method_name <- function(...)outside the class - Class options:
lock_objects,lock_class,cloneable,portable,inherit
Also generates roxygen2 documentation blocks for the class, its methods, and active bindings.