Skip to content
This repository has been archived by the owner on Jun 30, 2024. It is now read-only.

Commit

Permalink
Update extendr-macro.qmd
Browse files Browse the repository at this point in the history
Co-authored-by: CGMossa <cgmossa@gmail.com>
Signed-off-by: Josiah Parry <josiah.parry@gmail.com>
  • Loading branch information
JosiahParry and CGMossa authored Apr 1, 2024
1 parent 7f9a7e9 commit dcf11c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion extendr-macro.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ As most often, the compiler's suggestion is a good one. Use `&Shape` to use a re

## `ExternalPtr`: returning arbitrary Rust types

In the event that you need to return a Rust type to R that doesnt have a compatible impl or is a type that you don't own, you can use `ExternalPtr<T>`. The `ExternalPtr` struct allows any item to be captured as a pointer and returned to R.
In the event that you need to return a Rust type to R that doesn't have a compatible impl or is a type that you don't own, you can use `ExternalPtr<T>`. The `ExternalPtr` struct allows any item to be captured as a pointer and returned to R.

Here, for example, an `ExternalPtr<Shape>` is returned from the `shape_ptr()` function.

Expand Down

0 comments on commit dcf11c2

Please sign in to comment.