Skip to main content

LuaStringBuilder

Struct LuaStringBuilder 

Source
pub struct LuaStringBuilder<'thread, 'storage> { /* private fields */ }

Implementations§

Source§

impl<'thread, 'storage> LuaStringBuilder<'thread, 'storage>

Source

pub unsafe fn new( thread: &'thread Thread, inline: &'storage mut LuaStringBuilderStorage, ) -> Self

luaL_buffinit

Source

pub unsafe fn reserve(&mut self, size: usize) -> VmErrorResult<NonNull<u8>>

luaL_prepbuffsize

Source

pub unsafe fn push_bytes(&mut self, bytes: &[u8]) -> VmErrorResult

luaL_addlstring

Source

pub unsafe fn push_byte(&mut self, byte: u8) -> VmErrorResult

luaL_addchar

Source

pub unsafe fn push_stack_value(&mut self) -> VmErrorResult

luaL_addvalue

Source

pub unsafe fn push_any_value(&mut self, index: i32) -> VmResult

luaL_addvalueany

Source

pub unsafe fn finish(&mut self) -> VmErrorResult

luaL_pushresult

Source

pub unsafe fn finish_with_reserved(&mut self, size: usize) -> VmErrorResult

luaL_pushresultsize

Auto Trait Implementations§

§

impl<'thread, 'storage> !RefUnwindSafe for LuaStringBuilder<'thread, 'storage>

§

impl<'thread, 'storage> !Send for LuaStringBuilder<'thread, 'storage>

§

impl<'thread, 'storage> !Sync for LuaStringBuilder<'thread, 'storage>

§

impl<'thread, 'storage> !UnwindSafe for LuaStringBuilder<'thread, 'storage>

§

impl<'thread, 'storage> Freeze for LuaStringBuilder<'thread, 'storage>

§

impl<'thread, 'storage> Unpin for LuaStringBuilder<'thread, 'storage>

§

impl<'thread, 'storage> UnsafeUnpin for LuaStringBuilder<'thread, 'storage>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.