pub(crate) fn into_raw(self) -> Vec<Worker_ComponentData> {
        self.components
            .into_iter()
            .map(|(component_id, data)| Worker_ComponentData {
                component_id,
                schema_type: data.into_raw(),

                ..Default::default()
            })
            .collect()
    }
/// Converts the entity's contents into a format that can be used with the C API.
///
/// In cases where the C API takes an entity as a parameter, it does so by taking an array of
/// `Worker_ComponentData` structs. This method gathers the serialized component data and
/// returns a `Vec<Worker_ComponentData>` that can be used to pass data to the C API.
///
/// This method takes ownership of the data owned by the `Entity` so that it may be passed
/// to the C API. It is expected that ownership of the data will be taken by the C SDK and that
/// the C SKD will free any allocated data. For example, `Worker_Connection_SendCreateEntityRequest`
/// will take ownership of the underlying `Schema_ComponentData` and will free it when
/// appropriate. If the data is not passed to a similar function in the C SDK, then the data
/// owned by the `Entity` will leak.
Converts the entity's contents into a format that can be used with the C API.
In cases where the C API takes an entity as a parameter, it does so by taking an array of
`Worker_ComponentData` structs. This method gathers the serialized component data and
returns a `Vec` that can be used to pass data to the C API.

This method takes ownership of the data owned by the `Entity` so that it may be passed
to the C API. It is expected that ownership of the data will be taken by the C SDK and that
the C SKD will free any allocated data. For example, `Worker_Connection_SendCreateEntityRequest`
will take ownership of the underlying `Schema_ComponentData` and will free it when
appropriate. If the data is not passed to a similar function in the C SDK, then the data
owned by the `Entity` will leak.
Converts the entity ' s contents into a format that can be used with the C API . In cases where the C API takes an entity as a parameter it does so by taking an array of ` Worker_ComponentData ` structs . This method gathers the serialized component data and returns a ` Vec ` that can be used to pass data to the C API . This method takes ownership of the data owned by the ` Entity ` so that it may be passed to the C API . It is expected that ownership of the data will be taken by the C SDK and that the C SKD will free any allocated data . For example ` Worker_Connection_SendCreateEntityRequest ` will take ownership of the underlying ` Schema_ComponentData ` and will free it when appropriate . If the data is not passed to a similar function in the C SDK then the data owned by the ` Entity ` will leak .
pub(crate) fn into_raw(self) -> Vec<Worker_ComponentData> {
        self.components
            .into_iter()
            .map(|(component_id, data)| Worker_ComponentData {
                component_id,
                schema_type: data.into_raw(),
                ..Default::default()
            })
            .collect()
    }
pub ( crate ) fn into_raw ( self ) -> Vec < Worker_ComponentData > { self . components . into_iter ( ) . map ( | ( component_id , data ) | Worker_ComponentData { component_id , schema_type : data . into_raw ( ) , .. Default :: default ( ) } ) . collect ( ) }
Converts the entity's contents into a format that can be used with the C API.
Converts the entity ' s contents into a format that can be used with the C API .
self
self