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: buffers.rs
    path of file: ./repos/remacs/rust_src/src
    
    the code of the file until where you have to start completion: //! Functions operating on buffers.

use std::{self, iter, mem, ops, ptr, slice};

use field_offset::FieldOffset;
use
    
pub fn erase_buffer() {
    widen();
    unsafe {
        let mut cur_buf = ThreadState::current_buffer_unchecked();
        del_range(cur_buf.beg(), cur_buf.z());

        cur_buf.last_window_start = 1;

        // Prevent warnings, or suspension of auto saving, that would happen
        // if future size is less than past size.  Use of erase-buffer
        // implies that the future text is not really related to the past text.
        cur_buf.save_length_ = 0.into();
    }
}