[][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 build<T>() -> ComponentRegistrationBuilder<T> where
    T: Properties + DeserializeProperty + Component + FromResources
[src]

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

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

pub fn apply_property_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]

pub fn component_copy(
    &self,
    source_world: &World,
    destination_world: &mut World,
    resources: &Resources,
    source_entity: Entity,
    destination_entity: Entity
)
[src]

pub fn copy_from_scene(
    &self,
    scene_world: &World,
    destination_world: &mut World,
    resources: &Resources,
    source_entity: Entity,
    destination_entity: Entity
)
[src]

pub fn copy_to_scene(
    &self,
    source_world: &World,
    scene_world: &mut World,
    resources: &Resources,
    source_entity: Entity,
    destination_entity: Entity
)
[src]

pub fn map_entities(
    &self,
    world: &mut World,
    entity_map: &EntityMap
) -> Result<(), MapEntitiesError>
[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> Downcast for T where
    T: Any

impl<T> DowncastSync for T where
    T: Send + Sync + Any

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>,