Skip to main content

Module altrep_helpers

Module altrep_helpers 

Source
Expand description

ALTREP helpers for ExternalPtr — data1/data2 slot access.

Convenience functions for ALTREP implementations that store their data in ExternalPtr slots. Also provides the Sidecar marker type for #[r_data] fields.

Structs§

Computed
Marker type of a read-only R field computed from the Rust value (#1883).
RSidecar
Marker type for enabling R sidecar accessors in an ExternalPtr struct.

Functions§

altrep_data1_as⚠
Extract the ALTREP data1 slot as a typed ExternalPtr<T>.
altrep_data1_as_unchecked⚠
Extract the ALTREP data1 slot (unchecked version).
altrep_data1_mut⚠
Get a mutable reference to data in ALTREP data1 slot via ErasedExternalPtr.
altrep_data1_mut_unchecked⚠
Get a mutable reference to data in ALTREP data1 slot (unchecked version).
altrep_data2_as⚠
Extract the ALTREP data2 slot as a typed ExternalPtr<T>.
altrep_data2_as_unchecked⚠
Extract the ALTREP data2 slot (unchecked version).
data1_value_mut 🔒 ⚠
The T that erased holds, with no RefCell borrow.