Skip to content

Commit

Permalink
Point to native versions of functions in Function docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark McCaskey committed Dec 14, 2020
1 parent ae9a5f0 commit ad86491
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lib/api/src/externals/function.rs
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,9 @@ pub struct Function {
impl Function {
/// Creates a new host `Function` (dynamic) with the provided signature.
///
/// If you know the signature of the host function at compile time,
/// consider using [`Function::new_native`] for less runtime overhead.
///
/// # Examples
///
/// ```
Expand Down Expand Up @@ -134,6 +137,10 @@ impl Function {

/// Creates a new host `Function` (dynamic) with the provided signature and environment.
///
/// If you know the signature of the host function at compile time,
/// consider using [`Function::new_native_with_env`] for less runtime
/// overhead.
///
/// # Examples
///
/// ```
Expand Down

0 comments on commit ad86491

Please sign in to comment.