doc updates

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
Wolfgang Bumiller 2022-01-05 09:49:17 +01:00
parent 77171723e3
commit fb27e167ba

View File

@ -99,5 +99,12 @@ pub use perlmod_macro::package;
/// Implementing the `TryFrom` trait accordingly can make using blessed references more
/// convenient, but at the cost of hiding underlying `unsafe` code.
///
/// * `#[cv]`: This can be used on a single parameter of type [`&CV`](perlmod::ffi::CV) to get
/// access to the `xsub` value used to call the function.
///
/// This can be used, for instance, to associate callables with data, or to create attach boxed
/// closures with an xsub as an entry point to retrieving the closure via
/// [`magic`](ScalarRef::add_magic).
///
/// For an example on making blessed objects, see [`Value::bless_box`](Value::bless_box()).
pub use perlmod_macro::export;