summaryrefslogtreecommitdiff
path: root/src/eval/func.rs
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2023-05-17 14:41:46 +0200
committerLaurenz <laurmaedje@gmail.com>2023-05-17 14:41:46 +0200
commit551ea99d05166b0be50792f767ddd38b996e32fa (patch)
treeec5e86a087e79e8c181c7d4b904216a775227e2d /src/eval/func.rs
parent46aace78ac4ac1c075b9b1670dbb7372df1a0a82 (diff)
Show default values in documentation
Fixes #169 Fixes #1102
Diffstat (limited to 'src/eval/func.rs')
-rw-r--r--src/eval/func.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/eval/func.rs b/src/eval/func.rs
index 75231fc9..a224c5b8 100644
--- a/src/eval/func.rs
+++ b/src/eval/func.rs
@@ -279,6 +279,8 @@ pub struct ParamInfo {
pub docs: &'static str,
/// Valid values for the parameter.
pub cast: CastInfo,
+ /// Creates an instance of the parameter's default value.
+ pub default: Option<fn() -> Value>,
/// Is the parameter positional?
pub positional: bool,
/// Is the parameter named?