pub struct LuaBuffer {
pub data: Vec<u8>,
}Expand description
Growable byte-buffer used by the auxiliary library for building strings.
The C version uses a small inline initial buffer with overflow managed via
a Lua-stack userdata box. The Rust port collapses this to a plain Vec<u8>.
All buffer mutating functions take &mut LuaState as a separate parameter.
Fields§
§data: Vec<u8>Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LuaBuffer
impl RefUnwindSafe for LuaBuffer
impl Send for LuaBuffer
impl Sync for LuaBuffer
impl Unpin for LuaBuffer
impl UnsafeUnpin for LuaBuffer
impl UnwindSafe for LuaBuffer
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more