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: native_structures_test.rs
    path of file: ./repos/gdext/itest/rust/src/engine_tests
    
    the code of the file until where you have to start completion: /*
 * Copyright (c) godot-rust; Bromeon and contributors.
 * This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. I
    
    unsafe fn shaped_text_get_carets(&self, shaped: Rid, position: i64, caret: *mut CaretInfo) {
        // Record the arguments we were called with.
        self.cell.set(Some((shaped, position)));
        // Now put something in the out param.
        *caret = CaretInfo {
            leading_caret: Rect2::from_components(0.0, 0.0, 0.0, 0.0),
            trailing_caret: Rect2::from_components(1.0, 1.0, 1.0, 1.0),
            leading_direction: Direction::AUTO,
            trailing_direction: Direction::LTR,
        };
    }