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: mod.rs
    path of file: ./repos/rend3/examples/src/egui
    
    the code of the file until where you have to start completion: struct EguiExampleData {
    _object_handle: rend3::types::ObjectHandle,
    material_handle: rend3::types::MaterialHandle,
    _directional_handle: rend3::types::DirectionalLightHandle,

    egui_routine: rend3_egui::EguiRenderRoutine,
    context: egui::Context,
    platform: Option<egui_winit::State>,
    color: [f32; 4],
}

const SAMPLE_COUNT: rend3::types::SampleCount = rend3::types::SampleCount::One;

#[derive(Default)]
struct EguiExample {
    data: Option<EguiExampleData>,
    rust_logo: egui::TextureId,
}
impl rend3_framewor
    
    fn handle_event(&mut self, context: rend3_framework::EventContext<'_>, event: winit::event::Event<()>) {
        let data = self.data.as_mut().unwrap();

        #[allow(clippy::single_match)]
        match event {
            winit::event::Event::WindowEvent { event, .. } => {
                if let Some(window) = context.window {
                    // Pass the window events to the egui integration.
                    if data.platform.as_mut().unwrap().on_window_event(window, &event).consumed {
                        return;
                    }

                    #[allow(clippy::single_match)]
                    match event {
                        winit::event::WindowEvent::Resized(size) => {
                            data.egui_routine.resize(size.width, size.height, window.scale_factor() as f32);
                        }
                        _ => {}
                    }
                }
            }
            _ => {}
        }
    }