#[repr(C)]pub struct SimApi {
pub api_version: u32,
pub create: extern "C" fn(ctx: SimContext, config_json: *const c_char) -> *mut c_void,
pub pre_step: extern "C" fn(instance: *mut c_void, dt_seconds: f64),
pub step: extern "C" fn(instance: *mut c_void, dt_seconds: f64),
pub post_step: extern "C" fn(instance: *mut c_void, dt_seconds: f64),
pub destroy: extern "C" fn(instance: *mut c_void),
}Fields§
§api_version: u32§create: extern "C" fn(ctx: SimContext, config_json: *const c_char) -> *mut c_void§pre_step: extern "C" fn(instance: *mut c_void, dt_seconds: f64)§step: extern "C" fn(instance: *mut c_void, dt_seconds: f64)§post_step: extern "C" fn(instance: *mut c_void, dt_seconds: f64)§destroy: extern "C" fn(instance: *mut c_void)Auto Trait Implementations§
impl Freeze for SimApi
impl RefUnwindSafe for SimApi
impl Send for SimApi
impl Sync for SimApi
impl Unpin for SimApi
impl UnsafeUnpin for SimApi
impl UnwindSafe for SimApi
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