Expand description
TypedExternal implementations for standard library types.
This module provides TypedExternal implementations for common std types,
allowing them to be stored in ExternalPtr<T> without manual implementation.
§Generic Types
For generic types like Vec<T>, the type name does not include the type parameter
(e.g., Vec<i32> and Vec<String> both have type name “Vec”). This means type
checking at the R level won’t distinguish between different instantiations.
If you need stricter type safety, create a newtype wrapper and derive ExternalPtr.
Macros§
- impl_te 🔒
- Implement TypedExternal for a concrete type. For standard library types, we use the simple name for both display and ID.
- impl_
te_ 🔒generic - Implement TypedExternal for a generic type with ’static bounds. For standard library types, we prefix the ID with “std::” for clarity.