[][src]Struct bevy_type_registry::ComponentRegistration

pub struct ComponentRegistration {
    pub ty: TypeId,
    pub short_name: String,
    pub long_name: &'static str,
    // some fields omitted
}

Fields

ty: TypeIdshort_name: Stringlong_name: &'static str

Implementations

impl ComponentRegistration[src]

pub fn of<T: Properties + Component + FromResources>() -> Self[src]

pub fn add_component_to_entity(
    &self,
    world: &mut World,
    resources: &Resources,
    entity: Entity,
    property: &dyn Property
)
[src]

pub fn apply_component_to_entity(
    &self,
    world: &mut World,
    entity: Entity,
    property: &dyn Property
)
[src]

pub fn get_component_properties<'a>(
    &self,
    archetype: &'a Archetype,
    entity_index: usize
) -> &'a dyn Properties
[src]

Trait Implementations

impl Clone for ComponentRegistration[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Component for T where
    T: 'static + Send + Sync

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Resource for T where
    T: 'static + Send + Sync
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,