pub const fn of<T: Component>() -> Self {
        ComponentMeta {
            size: std::mem::size_of::<T>(),
            align: std::mem::align_of::<T>(),
            drop_fn: if std::mem::needs_drop::<T>() {
                Some(|ptr| unsafe { std::ptr::drop_in_place(ptr as *mut T) })
            } else {
                None
            },
        }
    }
/// Returns the component meta of component type `T`.
Returns the component meta of component type `T`.
Returns the component meta of component type ` T ` .
pub const fn of<T: Component>() -> Self {
        ComponentMeta {
            size: std::mem::size_of::<T>(),
            align: std::mem::align_of::<T>(),
            drop_fn: if std::mem::needs_drop::<T>() {
                Some(|ptr| unsafe { std::ptr::drop_in_place(ptr as *mut T) })
            } else {
                None
            },
        }
    }
pub const fn of < T : Component > ( ) -> Self { ComponentMeta { size : std :: mem :: size_of :: < T > ( ) , align : std :: mem :: align_of :: < T > ( ) , drop_fn : if std :: mem :: needs_drop :: < T > ( ) { Some ( | ptr | unsafe { std :: ptr :: drop_in_place ( ptr as * mut T ) } ) } else { None } , } }
Returns the component meta of component type `T`.
Returns the component meta of component type ` T ` .