doc(runtime-c-api) Improve documentation of wasmer_limits_t.

This commit is contained in:
Ivan Enderlin 2020-02-10 11:02:07 +01:00
parent 62a2e3ecad
commit 933a0de5e3

View File

@ -119,9 +119,15 @@ pub enum wasmer_result_t {
WASMER_ERROR = 2,
}
/// The `wasmer_limits_t` struct is a type that describes a memory
/// options. See the `wasmer_memory_t` struct or the
/// `wasmer_memory_new()` function to get more information.
#[repr(C)]
pub struct wasmer_limits_t {
/// The minimum number of allowed pages.
pub min: u32,
/// The maximum number of allowed pages.
pub max: wasmer_limit_option_t,
}