mirror of
git://git.proxmox.com/git/perlmod.git
synced 2025-01-23 06:03:37 +03:00
doc updates
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
parent
77171723e3
commit
fb27e167ba
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user