#[repr(C)]pub struct tm_expression_language_api {
pub compile: Option<unsafe extern "C" fn(*const i8, *const u64, u16, *mut tm_temp_allocator_i) -> *mut i8>,
pub is_error: Option<unsafe extern "C" fn(*const i8) -> *const i8>,
pub is_constant: Option<unsafe extern "C" fn(*const i8, *mut f32) -> bool>,
pub used_variables: Option<unsafe extern "C" fn(*const i8, *mut tm_temp_allocator_i) -> *mut u16>,
pub size: Option<unsafe extern "C" fn(*const i8) -> u32>,
pub run: Option<unsafe extern "C" fn(*const i8, *const f32) -> f32>,
}Fields§
§compile: Option<unsafe extern "C" fn(*const i8, *const u64, u16, *mut tm_temp_allocator_i) -> *mut i8>§is_error: Option<unsafe extern "C" fn(*const i8) -> *const i8>§is_constant: Option<unsafe extern "C" fn(*const i8, *mut f32) -> bool>§used_variables: Option<unsafe extern "C" fn(*const i8, *mut tm_temp_allocator_i) -> *mut u16>§size: Option<unsafe extern "C" fn(*const i8) -> u32>§run: Option<unsafe extern "C" fn(*const i8, *const f32) -> f32>Trait Implementations§
Source§impl Clone for tm_expression_language_api
impl Clone for tm_expression_language_api
Source§fn clone(&self) -> tm_expression_language_api
fn clone(&self) -> tm_expression_language_api
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 moreimpl Copy for tm_expression_language_api
Auto Trait Implementations§
impl Freeze for tm_expression_language_api
impl RefUnwindSafe for tm_expression_language_api
impl Send for tm_expression_language_api
impl Sync for tm_expression_language_api
impl Unpin for tm_expression_language_api
impl UnwindSafe for tm_expression_language_api
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