mirror of
https://github.com/fluencelabs/wasmer
synced 2025-06-27 15:41:33 +00:00
doc(runtime-c-api) Improve documentation of wasmer_limits_t
.
This commit is contained in:
@ -119,9 +119,15 @@ pub enum wasmer_result_t {
|
|||||||
WASMER_ERROR = 2,
|
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)]
|
#[repr(C)]
|
||||||
pub struct wasmer_limits_t {
|
pub struct wasmer_limits_t {
|
||||||
|
/// The minimum number of allowed pages.
|
||||||
pub min: u32,
|
pub min: u32,
|
||||||
|
|
||||||
|
/// The maximum number of allowed pages.
|
||||||
pub max: wasmer_limit_option_t,
|
pub max: wasmer_limit_option_t,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user