pub struct EntityApiInstanceMut {
pub api: *mut tm_entity_api,
pub ctx: *mut tm_entity_context_o,
}Fields§
§api: *mut tm_entity_api§ctx: *mut tm_entity_context_oImplementations§
Source§impl EntityApiInstanceMut
impl EntityApiInstanceMut
pub fn lookup_component(&mut self, name_hash: u64) -> u32
pub fn register_engine<C>(
&mut self,
name: &'static str,
update: impl Fn(&mut EntityApiInstanceMut, ComponentsIterator<'_, C>) + Send + Sync + 'static,
)where
C: ComponentTuple,
pub fn register_component(&mut self, component: &tm_component_i) -> u32
Trait Implementations§
Source§impl Clone for EntityApiInstanceMut
impl Clone for EntityApiInstanceMut
Source§fn clone(&self) -> EntityApiInstanceMut
fn clone(&self) -> EntityApiInstanceMut
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 EntityApiInstanceMut
Auto Trait Implementations§
impl Freeze for EntityApiInstanceMut
impl RefUnwindSafe for EntityApiInstanceMut
impl !Send for EntityApiInstanceMut
impl !Sync for EntityApiInstanceMut
impl Unpin for EntityApiInstanceMut
impl UnwindSafe for EntityApiInstanceMut
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