pub struct TypeInfo {
pub ty: TypeId,
pub name: &'static str,
pub size: usize,
pub align: usize,
pub fn_drop: FnDropRaw,
pub fn_clone: FnCloneRaw,
pub is_send: bool,
pub is_sync: bool,
}
Fields§
§ty: TypeId
Type id.
name: &'static str
Type name. This field may differ from rust version to version.
size: usize
Type size in bytes.
A multiple of align
including zero.
align: usize
Type alignment in bytes. A power of two, at lease one.
fn_drop: FnDropRaw
Raw level drop function.
fn_clone: FnCloneRaw
Raw level clone function. If the type doesn’t support clone, this must cause panic.
is_send: bool
Whether the type is Send.
is_sync: bool
Whether the type is Sync.
Implementations§
Trait Implementations§
source§impl DescribeGroup<Vec<ATypeId<ComponentKey_>>, EntityContainer, ATypeId<ComponentKey_>, TypeInfo> for EntityDesc
impl DescribeGroup<Vec<ATypeId<ComponentKey_>>, EntityContainer, ATypeId<ComponentKey_>, TypeInfo> for EntityDesc
fn into_group_and_items( self, ) -> GroupDesc<Vec<ComponentKey>, EntityContainer, ComponentKey, TypeInfo>
impl Copy for TypeInfo
Auto Trait Implementations§
impl Freeze for TypeInfo
impl RefUnwindSafe for TypeInfo
impl Send for TypeInfo
impl Sync for TypeInfo
impl Unpin for TypeInfo
impl UnwindSafe for TypeInfo
Blanket Implementations§
source§impl<T> AsTypeInfo for Twhere
T: 'static,
impl<T> AsTypeInfo for Twhere
T: 'static,
fn as_type_info() -> TypeInfo
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more