Skip to main content

provenance_of

Function provenance_of 

Source
pub fn provenance_of(type_name: &str) -> Option<ComponentProvenance>
Expand description

Looks up the registered provenance of a component by its type_name.

Returns None for a type that never registered — the generic HandleComponent<T> instantiations and anything tagged #[component(no_serializable)], neither of which participates in serialization, duplication or the “Add Component” menu.