pub fn placeholder(id: impl Into<String>) -> Expr
Expand description
Create placeholder value that will be filled in (such as $1
)
Note the parameter type can be inferred using Expr::infer_placeholder_types
ยงExample
let p = placeholder("$0"); // $0, refers to parameter 1
assert_eq!(p.to_string(), "$0")