pub struct Opt<'lua> { /* private fields */ }Expand description
Implementations
sourceimpl<'lua> Opt<'lua>
impl<'lua> Opt<'lua>
pub fn get<V: FromLua<'lua>>(&self, name: impl AsRef<str>) -> LuaResult<V>
pub fn set(
&self,
name: impl AsRef<str>,
value: impl ToLua<'lua>
) -> LuaResult<()>
pub fn append(
&self,
name: impl AsRef<str>,
value: impl ToLua<'lua>
) -> LuaResult<()>
pub fn prepend(
&self,
name: impl AsRef<str>,
value: impl ToLua<'lua>
) -> LuaResult<()>
pub fn remove(
&self,
name: impl AsRef<str>,
value: impl ToLua<'lua>
) -> LuaResult<()>
Trait Implementations
Auto Trait Implementations
impl<'lua> !RefUnwindSafe for Opt<'lua>
impl<'lua> !Send for Opt<'lua>
impl<'lua> !Sync for Opt<'lua>
impl<'lua> Unpin for Opt<'lua>
impl<'lua> !UnwindSafe for Opt<'lua>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<'lua, T> FromLuaMulti<'lua> for T where
T: FromLua<'lua>,
impl<'lua, T> FromLuaMulti<'lua> for T where
T: FromLua<'lua>,
sourcefn from_lua_multi(values: MultiValue<'lua>, lua: &'lua Lua) -> Result<T, Error>
fn from_lua_multi(values: MultiValue<'lua>, lua: &'lua Lua) -> Result<T, Error>
Performs the conversion. Read more