Function despero::ecs::try_serialize_id
source · pub fn try_serialize_id<T, I, S>(
archetype: &Archetype,
id: &I,
out: &mut S
) -> Result<(), <S as SerializeTuple>::Error>where
T: Component,
I: Serialize + ?Sized,
S: SerializeTuple,
Expand description
If archetype
has T
components, serialize id
into S