#[repr(C)]pub struct GraphComponentApi {
pub create_truth_types: Option<unsafe extern "C" fn(tt: *mut TheTruthO)>,
pub create: Option<unsafe extern "C" fn(ctx: *mut EntityContextO)>,
pub run_event: Option<unsafe extern "C" fn(ctx: *mut EntityContextO, event: StrhashT)>,
pub queue_event: Option<unsafe extern "C" fn(ctx: *mut EntityContextO, event: StrhashT)>,
pub tick_queues: Option<unsafe extern "C" fn(ctx: *mut EntityContextO)>,
}
Fields§
§create_truth_types: Option<unsafe extern "C" fn(tt: *mut TheTruthO)>
§create: Option<unsafe extern "C" fn(ctx: *mut EntityContextO)>
§run_event: Option<unsafe extern "C" fn(ctx: *mut EntityContextO, event: StrhashT)>
§queue_event: Option<unsafe extern "C" fn(ctx: *mut EntityContextO, event: StrhashT)>
§tick_queues: Option<unsafe extern "C" fn(ctx: *mut EntityContextO)>
Implementations§
Source§impl GraphComponentApi
impl GraphComponentApi
pub unsafe fn create_truth_types(&self, tt: *mut TheTruthO)
pub unsafe fn create(&self, ctx: *mut EntityContextO)
pub unsafe fn run_event(&self, ctx: *mut EntityContextO, event: StrhashT)
pub unsafe fn queue_event(&self, ctx: *mut EntityContextO, event: StrhashT)
pub unsafe fn tick_queues(&self, ctx: *mut EntityContextO)
Trait Implementations§
Source§impl Clone for GraphComponentApi
impl Clone for GraphComponentApi
Source§fn clone(&self) -> GraphComponentApi
fn clone(&self) -> GraphComponentApi
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 Default for GraphComponentApi
impl Default for GraphComponentApi
Source§fn default() -> GraphComponentApi
fn default() -> GraphComponentApi
Returns the “default value” for a type. Read more
impl Copy for GraphComponentApi
Auto Trait Implementations§
impl Freeze for GraphComponentApi
impl RefUnwindSafe for GraphComponentApi
impl Send for GraphComponentApi
impl Sync for GraphComponentApi
impl Unpin for GraphComponentApi
impl UnwindSafe for GraphComponentApi
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