use mlua::{IntoLua, Lua}; pub struct Range(std::ops::Range); impl From> for Range { fn from(value: std::ops::Range) -> Self { Self(value) } } impl IntoLua for Range where T: IntoLua, { fn into_lua(self, lua: &Lua) -> mlua::Result { lua.create_sequence_from([self.0.start, self.0.end])?.into_lua(lua) } }