#[repr(C)]pub struct SCRIPT_MODULE_PARAM {Show 25 fields
pub get_param_num: unsafe extern "C" fn() -> c_int,
pub get_param_int: unsafe extern "C" fn(index: c_int) -> c_int,
pub get_param_double: unsafe extern "C" fn(index: c_int) -> c_double,
pub get_param_string: unsafe extern "C" fn(index: c_int) -> *const c_char,
pub get_param_data: unsafe extern "C" fn(index: c_int) -> *mut c_void,
pub get_param_table_int: unsafe extern "C" fn(index: c_int, key: *const c_char) -> c_int,
pub get_param_table_double: unsafe extern "C" fn(index: c_int, key: *const c_char) -> c_double,
pub get_param_table_string: unsafe extern "C" fn(index: c_int, key: *const c_char) -> *const c_char,
pub get_param_array_num: unsafe extern "C" fn(index: c_int) -> c_int,
pub get_param_array_int: unsafe extern "C" fn(index: c_int, key: c_int) -> c_int,
pub get_param_array_double: unsafe extern "C" fn(index: c_int, key: c_int) -> c_double,
pub get_param_array_string: unsafe extern "C" fn(index: c_int, key: c_int) -> *const c_char,
pub push_result_int: unsafe extern "C" fn(value: c_int),
pub push_result_double: unsafe extern "C" fn(value: c_double),
pub push_result_string: unsafe extern "C" fn(value: *const c_char),
pub push_result_data: unsafe extern "C" fn(value: *const c_void),
pub push_result_table_int: unsafe extern "C" fn(key: *const *const c_char, value: *const c_int, num: c_int),
pub push_result_table_double: unsafe extern "C" fn(key: *const *const c_char, value: *const c_double, num: c_int),
pub push_result_table_string: unsafe extern "C" fn(key: *const *const c_char, value: *const *const c_char, num: c_int),
pub push_result_array_int: unsafe extern "C" fn(value: *const c_int, num: c_int),
pub push_result_array_double: unsafe extern "C" fn(value: *const c_double, num: c_int),
pub push_result_array_string: unsafe extern "C" fn(value: *const *const c_char, num: c_int),
pub set_error: unsafe extern "C" fn(message: *const c_char),
pub get_param_boolean: unsafe extern "C" fn(index: c_int) -> bool,
pub push_result_boolean: unsafe extern "C" fn(value: bool),
}Expand description
スクリプトモジュール引数構造体
Fields§
§get_param_num: unsafe extern "C" fn() -> c_int§get_param_int: unsafe extern "C" fn(index: c_int) -> c_int§get_param_double: unsafe extern "C" fn(index: c_int) -> c_double§get_param_string: unsafe extern "C" fn(index: c_int) -> *const c_char§get_param_data: unsafe extern "C" fn(index: c_int) -> *mut c_void§get_param_table_int: unsafe extern "C" fn(index: c_int, key: *const c_char) -> c_int§get_param_table_double: unsafe extern "C" fn(index: c_int, key: *const c_char) -> c_double§get_param_table_string: unsafe extern "C" fn(index: c_int, key: *const c_char) -> *const c_char引数の連想配列要素を文字列(UTF-8)で取得する
§Arguments
index- 引数の位置(0〜)key- キー名(UTF-8)
§Returns
引数の値 (取得出来ない場合はnullptr)
get_param_array_num: unsafe extern "C" fn(index: c_int) -> c_int§get_param_array_int: unsafe extern "C" fn(index: c_int, key: c_int) -> c_int§get_param_array_double: unsafe extern "C" fn(index: c_int, key: c_int) -> c_double§get_param_array_string: unsafe extern "C" fn(index: c_int, key: c_int) -> *const c_char引数の配列要素を文字列(UTF-8)で取得する
§Arguments
index- 引数の位置(0〜)key- 配列のインデックス(0〜)
§Returns
引数の値 (取得出来ない場合はnullptr)
push_result_int: unsafe extern "C" fn(value: c_int)§push_result_double: unsafe extern "C" fn(value: c_double)§push_result_string: unsafe extern "C" fn(value: *const c_char)§push_result_data: unsafe extern "C" fn(value: *const c_void)§push_result_table_int: unsafe extern "C" fn(key: *const *const c_char, value: *const c_int, num: c_int)§push_result_table_double: unsafe extern "C" fn(key: *const *const c_char, value: *const c_double, num: c_int)§push_result_table_string: unsafe extern "C" fn(key: *const *const c_char, value: *const *const c_char, num: c_int)§push_result_array_int: unsafe extern "C" fn(value: *const c_int, num: c_int)§push_result_array_double: unsafe extern "C" fn(value: *const c_double, num: c_int)§push_result_array_string: unsafe extern "C" fn(value: *const *const c_char, num: c_int)§set_error: unsafe extern "C" fn(message: *const c_char)§get_param_boolean: unsafe extern "C" fn(index: c_int) -> bool§push_result_boolean: unsafe extern "C" fn(value: bool)Trait Implementations§
Source§impl Clone for SCRIPT_MODULE_PARAM
impl Clone for SCRIPT_MODULE_PARAM
Source§fn clone(&self) -> SCRIPT_MODULE_PARAM
fn clone(&self) -> SCRIPT_MODULE_PARAM
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SCRIPT_MODULE_PARAM
impl Debug for SCRIPT_MODULE_PARAM
impl Copy for SCRIPT_MODULE_PARAM
Auto Trait Implementations§
impl Freeze for SCRIPT_MODULE_PARAM
impl RefUnwindSafe for SCRIPT_MODULE_PARAM
impl Send for SCRIPT_MODULE_PARAM
impl Sync for SCRIPT_MODULE_PARAM
impl Unpin for SCRIPT_MODULE_PARAM
impl UnwindSafe for SCRIPT_MODULE_PARAM
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more