Function flatbox_ecs::try_serialize

source ·
pub fn try_serialize<T, S>(
    archetype: &Archetype,
    out: &mut S
) -> Result<(), <S as SerializeTuple>::Error>
Expand description

If archetype has T components, serialize them into out

Useful for implementing SerializeContext::serialize_components().