Struct oxygengine::prelude::EntityAddComponent
source · pub struct EntityAddComponent<C>where
C: Component + Send + Sync,{
pub entity: Entity,
/* private fields */
}
Fields§
§entity: Entity
Implementations§
source§impl<C> EntityAddComponent<C>where
C: Component + Send + Sync,
impl<C> EntityAddComponent<C>where C: Component + Send + Sync,
pub fn new(entity: Entity, component: C) -> EntityAddComponent<C>
pub fn on_complete<F>(self, f: F) -> EntityAddComponent<C>where F: FnMut(&mut Universe, Entity) + Send + Sync + 'static,
Trait Implementations§
Auto Trait Implementations§
impl<C> !RefUnwindSafe for EntityAddComponent<C>
impl<C> Send for EntityAddComponent<C>
impl<C> Sync for EntityAddComponent<C>
impl<C> Unpin for EntityAddComponent<C>where C: Unpin,
impl<C> !UnwindSafe for EntityAddComponent<C>
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