pub struct ToString(pub String);Expand description
String wrapper struct that can be used to read a lua value by converting it
to string possibly using __tostring metamethod.
Tuple Fields§
§0: StringTrait Implementations§
Source§impl<L> LuaRead<L> for ToStringwhere
L: AsLua,
impl<L> LuaRead<L> for ToStringwhere
L: AsLua,
Source§fn lua_read_at_position(lua: L, index: NonZeroI32) -> ReadResult<Self, L>
fn lua_read_at_position(lua: L, index: NonZeroI32) -> ReadResult<Self, L>
Reads the data from Lua at a given position.
fn n_values_expected() -> i32
Source§fn lua_read(lua: L) -> ReadResult<Self, L>
fn lua_read(lua: L) -> ReadResult<Self, L>
Reads the data from Lua.
fn lua_read_at_maybe_zero_position(lua: L, index: i32) -> ReadResult<Self, L>where
L: AsLua,
Auto Trait Implementations§
impl Freeze for ToString
impl RefUnwindSafe for ToString
impl Send for ToString
impl Sync for ToString
impl Unpin for ToString
impl UnsafeUnpin for ToString
impl UnwindSafe for ToString
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