fn log_call(&self) {
            let buffer = self.buffer.lock().unwrap();
            let mut calls = self.calls.lock().unwrap();
            let cstring = unsafe { CStr::from_ptr(buffer.as_ptr()) };
            let as_str = cstring.to_str().expect("snprintf string isn't valid UTF-8");

            calls.push(as_str.to_string());
        }
/// Called internally when the `buffer` member has been filled with a new string with `snprintf`.
/// Convert that into a Rust string and add it to the `calls` vector.
Called internally when the `buffer` member has been filled with a new string with `snprintf`.
Convert that into a Rust string and add it to the `calls` vector.
Called internally when the ` buffer ` member has been filled with a new string with ` snprintf ` . Convert that into a Rust string and add it to the ` calls ` vector .
fn log_call(&self) {
            let buffer = self.buffer.lock().unwrap();
            let mut calls = self.calls.lock().unwrap();
            let cstring = unsafe { CStr::from_ptr(buffer.as_ptr()) };
            let as_str = cstring.to_str().expect("snprintf string isn't valid UTF-8");
            calls.push(as_str.to_string());
        }
fn log_call ( & self ) { let buffer = self . buffer . lock ( ) . unwrap ( ) ; let mut calls = self . calls . lock ( ) . unwrap ( ) ; let cstring = unsafe { CStr :: from_ptr ( buffer . as_ptr ( ) ) } ; let as_str = cstring . to_str ( ) . expect ( " " ) ; calls . push ( as_str . to_string ( ) ) ; }
Called internally when the `buffer` member has been filled with a new string with `snprintf`.
Called internally when the ` buffer ` member has been filled with a new string with ` snprintf ` .
&self
&self