Struct oxygengine::prelude::ColumnBatchBuilder
pub struct ColumnBatchBuilder { /* private fields */ }
Expand description
An incomplete collection of component data for entities with the same component types
Implementations§
§impl ColumnBatchBuilder
impl ColumnBatchBuilder
pub fn new(ty: ColumnBatchType, size: u32) -> ColumnBatchBuilder
pub fn new(ty: ColumnBatchType, size: u32) -> ColumnBatchBuilder
Create a batch for exactly size
entities with certain component types
pub fn writer<T>(&mut self) -> Option<BatchWriter<'_, T>>where
T: Component,
pub fn writer<T>(&mut self) -> Option<BatchWriter<'_, T>>where T: Component,
Get a handle for inserting T
components if T
was in the ColumnBatchType
pub fn build(self) -> Result<ColumnBatch, BatchIncomplete>
pub fn build(self) -> Result<ColumnBatch, BatchIncomplete>
Finish the batch, failing if any components are missing
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for ColumnBatchBuilder
impl Unpin for ColumnBatchBuilder
impl UnwindSafe for ColumnBatchBuilder
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