You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: particle.rs
    path of file: ./repos/feather/feather/old/server/entity/src
    
    the code of the file until where you have to start completion: //! Implements particle entities.

use feather_core::misc::ParticleData;
use feather_core::network::{packets, Packet};
use feather_core::util::Position;
use feather_server_types::{ParticleCount, SpawnPacketCreator};
use fecs::{EntityBuilder, EntityRef};

/// Creates a particle with the given kind and count.
pub fn create(kind: ParticleData, count: 
    
fn create_spawn_packet(accessor: &EntityRef) -> Box<dyn Packet> {
    let particle = accessor.get::<ParticleData>();
    let count = accessor.get::<ParticleCount>().0;
    let pos = *accessor.get::<Position>();

    Box::new(packets::Particle {
        long_distance: false,
        x: pos.x as f32,
        y: pos.y as f32,
        z: pos.z as f32,
        offset_x: 0.0, // TODO: offsets
        offset_y: 0.0,
        offset_z: 0.0,
        particle_data: 0.0, // TODO: what is this?
        particle_count: count as i32,
        data: *particle,
    })
}