[−][src]Struct bevy_type_registry::ComponentRegistry
Fields
registrations: HashMap<TypeId, ComponentRegistration>
short_names: HashMap<String, TypeId>
full_names: HashMap<String, TypeId>
ambigous_names: HashSet<String>
Implementations
impl ComponentRegistry
[src]
pub fn register<T>(&mut self) where
T: Properties + Component + FromResources,
[src]
T: Properties + Component + FromResources,
pub fn get(&self, type_id: &TypeId) -> Option<&ComponentRegistration>
[src]
pub fn get_with_full_name(
&self,
full_name: &str
) -> Option<&ComponentRegistration>
[src]
&self,
full_name: &str
) -> Option<&ComponentRegistration>
pub fn get_with_short_name(
&self,
short_name: &str
) -> Option<&ComponentRegistration>
[src]
&self,
short_name: &str
) -> Option<&ComponentRegistration>
pub fn get_with_name(&self, type_name: &str) -> Option<&ComponentRegistration>
[src]
Trait Implementations
impl Default for ComponentRegistry
[src]
fn default() -> ComponentRegistry
[src]
Auto Trait Implementations
impl RefUnwindSafe for ComponentRegistry
impl Send for ComponentRegistry
impl Sync for ComponentRegistry
impl Unpin for ComponentRegistry
impl UnwindSafe for ComponentRegistry
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Component for T where
T: 'static + Send + Sync,
T: 'static + Send + Sync,
impl<T> From<T> for T
[src]
impl<T> FromResources for T where
T: Default,
[src]
T: Default,
fn from_resources(_resources: &Resources) -> T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Resource for T where
T: 'static + Send + Sync,
[src]
T: 'static + Send + Sync,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,