pub struct Spawn<B> {
pub entity: Entity,
pub scope: Entity,
bundle: Option<B>,
}Expand description
Spawns a bundle on a reserved entity, in a scope.
Fields§
§entity: EntityThe reserved handle.
scope: EntityThe scope the entity lands in.
bundle: Option<B>Trait Implementations§
Auto Trait Implementations§
impl<B> Forget for Spawn<B>
impl<B> Freeze for Spawn<B>
impl<B> RefUnwindSafe for Spawn<B>where
Option<B>: RefUnwindSafe,
impl<B> Send for Spawn<B>
impl<B> Sync for Spawn<B>
impl<B> Unpin for Spawn<B>
impl<B> UnsafeUnpin for Spawn<B>where
Option<B>: UnsafeUnpin,
impl<B> UnwindSafe for Spawn<B>where
Option<B>: UnwindSafe,
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