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: String
Trait 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 RefUnwindSafe for ToString
impl Send for ToString
impl Sync for ToString
impl Unpin 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