pub struct LuaOptions { /* private fields */ }Expand description
Per-VM behavioral options. Mirrors mlua::LuaOptions.
Implementations§
Source§impl LuaOptions
impl LuaOptions
Sourcepub const fn new() -> LuaOptions
pub const fn new() -> LuaOptions
The default options (catch_rust_panics = true). Mirrors
mlua::LuaOptions::new.
Sourcepub const fn catch_rust_panics(self, enabled: bool) -> LuaOptions
pub const fn catch_rust_panics(self, enabled: bool) -> LuaOptions
Set whether Rust panics in callbacks are caught and converted to Lua
errors. Mirrors mlua::LuaOptions::catch_rust_panics.
Trait Implementations§
Source§impl Clone for LuaOptions
impl Clone for LuaOptions
Source§fn clone(&self) -> LuaOptions
fn clone(&self) -> LuaOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for LuaOptions
Source§impl Debug for LuaOptions
impl Debug for LuaOptions
Auto Trait Implementations§
impl Freeze for LuaOptions
impl RefUnwindSafe for LuaOptions
impl Send for LuaOptions
impl Sync for LuaOptions
impl Unpin for LuaOptions
impl UnsafeUnpin for LuaOptions
impl UnwindSafe for LuaOptions
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