Skip to content

Commit

Permalink
Move some docs
Browse files Browse the repository at this point in the history
  • Loading branch information
alexcrichton committed Mar 18, 2020
1 parent 99625b7 commit 063ddb0
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions crates/api/src/func.rs
Original file line number Diff line number Diff line change
Expand Up @@ -847,6 +847,11 @@ pub trait IntoFunc<Params, Results> {
/// [`Func::wrap`], and it can be used to learn information about the caller of
/// the function, such as the calling module's memory, exports, etc.
///
/// The primary purpose of this structure is to provide access to the
/// caller's information, such as it's exported memory. This allows
/// functions which take pointers as arguments to easily read the memory the
/// pointers point into.
///
/// Note that this is intended to be a pretty temporary mechanism for accessing
/// the caller's memory until interface types has been fully standardized and
/// implemented.
Expand All @@ -858,11 +863,6 @@ pub struct Caller<'a> {
impl Caller<'_> {
/// Looks up an export from the caller's module by the `name` given.
///
/// The primary purpose of this structure is to provide access to the
/// caller's information, such as it's exported memory. This allows
/// functions which take pointers as arguments to easily read the memory the
/// pointers point into.
///
/// Note that this function is only implemented for the `Extern::Memory`
/// type currently. No other exported structure can be acquired through this
/// just yet, but this may be implemented in the future!
Expand Down

0 comments on commit 063ddb0

Please sign in to comment.