pub struct ComponentInfo {
pub type_id: TypeId,
pub size: usize,
pub alignment: usize,
}
Expand description
Type description for allocation and type comparison of components. Generated
by impl_game_object
.
Fields§
§type_id: TypeId
The type of the component. Eventually passed into a
ComponentColumn
, and returned from
ComponentColumn::component_type
.
size: usize
The size_of the component type.
alignment: usize
The align_of the component type.
Trait Implementations§
Source§impl Clone for ComponentInfo
impl Clone for ComponentInfo
Source§fn clone(&self) -> ComponentInfo
fn clone(&self) -> ComponentInfo
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 moreimpl Copy for ComponentInfo
Auto Trait Implementations§
impl Freeze for ComponentInfo
impl RefUnwindSafe for ComponentInfo
impl Send for ComponentInfo
impl Sync for ComponentInfo
impl Unpin for ComponentInfo
impl UnwindSafe for ComponentInfo
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