pub fn extend<T>(&mut self, components: T) -> &[Entity]
    where
        T: 'static + IntoComponentSource,
        <T as IntoComponentSource>::Source: KnownLength + Send + Sync,
    {
        let components = components.into();
        let start = self.pending_insertion.len();
        let count = components.len();

        self.pending_insertion.reserve(count);
        for _ in 0..count {
            self.pending_insertion
                .push(self.entity_allocator.next().unwrap());
        }

        let range = start..self.pending_insertion.len();

        self.commands
            .push_front(Command::WriteWorld(StrongArc::new(InsertBufferedCommand {
                components,
                entities: range.clone(),
            })));

        &self.pending_insertion[range]
    }
/// Queues the insertion of new entities into the world.
Queues the insertion of new entities into the world.
Queues the insertion of new entities into the world .
pub fn extend<T>(&mut self, components: T) -> &[Entity]
    where
        T: 'static + IntoComponentSource,
        <T as IntoComponentSource>::Source: KnownLength + Send + Sync,
    {
        let components = components.into();
        let start = self.pending_insertion.len();
        let count = components.len();
        self.pending_insertion.reserve(count);
        for _ in 0..count {
            self.pending_insertion
                .push(self.entity_allocator.next().unwrap());
        }
        let range = start..self.pending_insertion.len();
        self.commands
            .push_front(Command::WriteWorld(StrongArc::new(InsertBufferedCommand {
                components,
                entities: range.clone(),
            })));
        &self.pending_insertion[range]
    }
pub fn extend < T > ( & mut self , components : T ) -> & [ Entity ] where T : ' static + IntoComponentSource , < T as IntoComponentSource > :: Source : KnownLength + Send + Sync , { let components = components . into ( ) ; let start = self . pending_insertion . len ( ) ; let count = components . len ( ) ; self . pending_insertion . reserve ( count ) ; for _ in 0 .. count { self . pending_insertion . push ( self . entity_allocator . next ( ) . unwrap ( ) ) ; } let range = start .. self . pending_insertion . len ( ) ; self . commands . push_front ( Command :: WriteWorld ( StrongArc :: new ( InsertBufferedCommand { components , entities : range . clone ( ) , } ) ) ) ; & self . pending_insertion [ range ] }
Queues the insertion of new entities into the world.
Queues the insertion of new entities into the world .
&mut self
components
T
&mut self
components
T