pub struct IndexableRW<L> { /* private fields */ }
Expand description

An opaque value on lua stack that can be indexed immutably as well as mutably. Can represent a lua table, a lua table with a __index and __newindex metamethods or other indexable lua value.

Use this type when reading return values from lua functions or getting lua function from tables.

Trait Implementations

Try to push v onto the lua stack. Read more

Push v onto the lua stack. Read more

Try to push v onto the lua stack. Read more

Push v onto the lua stack. Read more

Push iterator onto the lua stack as a lua table. Read more

Push iterator onto the lua stack as a lua table. Read more

Call a rust function in protected mode. If a lua error is thrown during execution of f the function will return a LuaError. Read more

Converts this type into a shared reference of the (usually inferred) input type.

Formats the value using the given formatter. Read more

Converts to this type from the input type.

Loads a value from the table (or other object using the __index metamethod) given its index. Read more

Loads a value from the table (or other object using the __index metamethod) given its index. Read more

Loads a value in the table (or other object using the __index metamethod) given its index, with the result capturing the table by value. Read more

Loads a value in the table (or other object using the __index metamethod) given its index, with the result capturing the table by value. Read more

Calls the method called name of the table (or other indexable object) with the provided args. Read more

Reads the data from Lua at a given position.

Reads the data from Lua.

Inserts or modifies a value of the table (or other object using the __index or __newindex metamethod) given its index. Read more

Inserts or modifies a value of the table (or other object using the __index or __newindex metamethod) given its index. Read more

Inserts or modifies a value of the table (or other object using the __newindex metamethod) given its index. Read more

Inserts or modifies a value of the table (or other object using the __newindex metamethod) given its index. Read more

Error that can happen when pushing a value.

Pushes the value on the top of the stack. Read more

Same as push_to_lua but can only succeed and is only available if Err implements Into<Void>. Read more

The type returned in the event of a conversion error.

Performs the conversion.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

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

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.