miniextendr_api/trait_abi/ccall.rs
1//! Direct access to the trait ABI entry points compiled into this package.
2//!
3//! Re-export the implementations so Rust callers use their actual `C-unwind`
4//! signatures. The same functions are registered as R C-callables by package
5//! initialization; calling them here needs no `R_GetCCallable` indirection.
6//!
7//! To construct a generated view, use [`TraitView::try_from_sexp`] instead of
8//! casting the vtable returned by [`mx_query`]. A view needs both the concrete
9//! data pointer and the vtable, and roots its R receiver.
10//!
11//! [`TraitView::try_from_sexp`]: super::TraitView::try_from_sexp
12
13pub use crate::mx_abi::{mx_get, mx_query, mx_wrap};