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: renderdoc.rs
    path of file: ./repos/ruffle/render/src
    
    the code of the file until where you have to start completion: use std::cell::RefCell;

use renderdoc::RenderDoc;

thread_local! {
    pub static RENDERDOC: RefCell<Option<Result<RenderDoc<renderdoc::V141>, renderdoc::Error>>> = const { RefCell::new(None) };
}

pub fn start_frame_capture() {
    RENDERDOC.with(|renderdoc_cell| {
        let mut write = renderdoc
    
pub fn end_frame_capture() {
    RENDERDOC.with(|renderdoc_cell| {
        let mut write = renderdoc_cell.borrow_mut();
        let renderdoc = write.as_mut().expect("start_frame_capture was not called");
        // We already logged an error in `start_frame_capture` if Renderdoc wasn't initialized,
        // so there's no need to log one again here
        if let Ok(renderdoc) = renderdoc {
            renderdoc.end_frame_capture(std::ptr::null(), std::ptr::null());
        }
    })
}