Skip to main content

luaur_vm/methods/
temp_buffer_temp_buffer_lvmload_alt_b.rs

1use crate::records::temp_buffer::TempBuffer;
2
3impl<T> TempBuffer<T> {
4    /// C++ `TempBuffer(const TempBuffer&) = delete;`
5    ///
6    /// In Rust, we represent a deleted copy constructor by panicking if it is called,
7    /// as the C++ compiler would have prevented this at compile time.
8    pub fn temp_buffer_temp_buffer(&mut self, _other: &TempBuffer<T>) {
9        panic!("TempBuffer copy constructor is deleted");
10    }
11}