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: text_filter.rs
    path of file: ./repos/imgui-rs/imgui/src
    
    the code of the file until where you have to start completion: use crate::sys;
use crate::Ui;
use std::ptr;

/// Helper to parse and apply text filters
pub struct TextFilter {
    id: String,
    raw: *mut sys::ImGuiTextFilter,
}

impl TextFilter {
    /// Create
    
    pub fn pass_filter_with_end(&self, start: &str, end: &str) -> bool {
        let (mut start, mut end) = (String::from(start), String::from(end));
        start.push('\0');
        end.push('\0');
        let b_ptr = start.as_mut_ptr();
        let e_ptr = end.as_mut_ptr();
        unsafe {
            sys::ImGuiTextFilter_PassFilter(
                self.raw,
                b_ptr as *mut sys::cty::c_char,
                e_ptr as *mut sys::cty::c_char,
            )
        }
    }