From 09272d08e9b385b7fc5341604fc21a4d9ebe8ef2 Mon Sep 17 00:00:00 2001 From: Stephen Chung Date: Sat, 3 Dec 2022 10:05:15 +0800 Subject: [PATCH] Add documentation. --- src/func/register.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/func/register.rs b/src/func/register.rs index 3c5dd5be..0144eeba 100644 --- a/src/func/register.rs +++ b/src/func/register.rs @@ -72,7 +72,9 @@ pub fn by_value(data: &mut Dynamic) -> T { /// # Type Parameters /// /// * `ARGS` - a tuple containing parameter types, with `&mut T` represented by `Mut`. +/// * `NUM` - a constant generic containing the number of parameters, must be consistent with `ARGS`. /// * `RET` - return type of the function; if the function returns `Result`, it is the unwrapped inner value type. +/// * `RESULT` - a type to distinguish between multiple forms. Must match the function signature. pub trait RegisterNativeFunction { /// Convert this function into a [`CallableFunction`]. #[must_use]