Function despero::ecs::try_serialize

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

If archetype has T components, serialize them into out

Useful for implementing SerializeContext::serialize_components().