pub enum Index {
    Int(usize),
    Str(Cow<'static, str>),
}Expand description
Represents a lua table key
Table keys can be either a string or an integer
Variants§
Trait Implementations§
Source§impl From<MetaMethod> for Index
 
impl From<MetaMethod> for Index
Source§fn from(value: MetaMethod) -> Self
 
fn from(value: MetaMethod) -> Self
Converts to this type from the input type.
Source§impl Ord for Index
 
impl Ord for Index
Source§impl PartialOrd for Index
 
impl PartialOrd for Index
impl Eq for Index
impl StructuralPartialEq for Index
Auto Trait Implementations§
impl Freeze for Index
impl RefUnwindSafe for Index
impl Send for Index
impl Sync for Index
impl Unpin for Index
impl UnwindSafe for Index
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
Source§impl<T> CloneToUninit for Twhere
    T: Clone,
 
impl<T> CloneToUninit for Twhere
    T: Clone,
Source§impl<'lua, T> IntoLuaMulti<'lua> for Twhere
    T: IntoLua<'lua>,
 
impl<'lua, T> IntoLuaMulti<'lua> for Twhere
    T: IntoLua<'lua>,
Source§fn into_lua_multi(self, lua: &'lua Lua) -> Result<MultiValue<'lua>, Error>
 
fn into_lua_multi(self, lua: &'lua Lua) -> Result<MultiValue<'lua>, Error>
Performs the conversion.