Struct oxygengine::prelude::ecs::ColumnBatchType
pub struct ColumnBatchType { /* private fields */ }
Expand description
A collection of component types
Implementations§
§impl ColumnBatchType
impl ColumnBatchType
pub fn new() -> ColumnBatchType
pub fn new() -> ColumnBatchType
Create an empty type
pub fn add<T>(&mut self) -> &mut ColumnBatchTypewhere
T: Component,
pub fn add<T>(&mut self) -> &mut ColumnBatchTypewhere T: Component,
Update to include T
components
pub fn into_batch(self, size: u32) -> ColumnBatchBuilder
pub fn into_batch(self, size: u32) -> ColumnBatchBuilder
Construct a ColumnBatchBuilder
for exactly size
entities with these components
Trait Implementations§
§impl Clone for ColumnBatchType
impl Clone for ColumnBatchType
§fn clone(&self) -> ColumnBatchType
fn clone(&self) -> ColumnBatchType
Returns a copy 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 more§impl Debug for ColumnBatchType
impl Debug for ColumnBatchType
§impl Default for ColumnBatchType
impl Default for ColumnBatchType
§fn default() -> ColumnBatchType
fn default() -> ColumnBatchType
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl RefUnwindSafe for ColumnBatchType
impl Send for ColumnBatchType
impl Sync for ColumnBatchType
impl Unpin for ColumnBatchType
impl UnwindSafe for ColumnBatchType
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
§impl<T> Initialize for Twhere
T: Default,
impl<T> Initialize for Twhere T: Default,
fn initialize(&mut self)
§unsafe fn initialize_raw(data: *mut ())
unsafe fn initialize_raw(data: *mut ())
Safety Read more