pub struct StdLib(/* private fields */);Expand description
Flags describing the set of lua standard libraries to load.
Implementations§
Source§impl StdLib
impl StdLib
Sourcepub const COROUTINE: StdLib
Available on crate features lua54 or lua53 or lua52 or luau only.
pub const COROUTINE: StdLib
lua54 or lua53 or lua52 or luau only.coroutine library
Requires feature = "lua54/lua53/lua52/luau"
Sourcepub const UTF8: StdLib
Available on crate features lua54 or lua53 or luau only.
pub const UTF8: StdLib
lua54 or lua53 or luau only.utf8 library
Requires feature = "lua54/lua53/luau"
Sourcepub const BIT: StdLib
Available on crate features lua52 or luajit or luau only.
pub const BIT: StdLib
lua52 or luajit or luau only.bit library
Requires feature = "lua52/luajit/luau"
Sourcepub const JIT: StdLib
Available on crate feature luajit only.
pub const JIT: StdLib
luajit only.jit library
Requires feature = "luajit"
Sourcepub const FFI: StdLib
Available on crate feature luajit only.
pub const FFI: StdLib
luajit only.(unsafe) ffi library
Requires feature = "luajit"
Sourcepub const ALL_SAFE: StdLib
Available on non-crate feature luau only.
pub const ALL_SAFE: StdLib
luau only.The safe subset of the standard libraries
pub fn contains(self, lib: Self) -> bool
Trait Implementations§
Source§impl BitAndAssign for StdLib
impl BitAndAssign for StdLib
Source§fn bitand_assign(&mut self, rhs: Self)
fn bitand_assign(&mut self, rhs: Self)
Performs the
&= operation. Read moreSource§impl BitOrAssign for StdLib
impl BitOrAssign for StdLib
Source§fn bitor_assign(&mut self, rhs: Self)
fn bitor_assign(&mut self, rhs: Self)
Performs the
|= operation. Read moreSource§impl BitXorAssign for StdLib
impl BitXorAssign for StdLib
Source§fn bitxor_assign(&mut self, rhs: Self)
fn bitxor_assign(&mut self, rhs: Self)
Performs the
^= operation. Read moreSource§impl Ord for StdLib
impl Ord for StdLib
Source§impl PartialOrd for StdLib
impl PartialOrd for StdLib
impl Copy for StdLib
impl Eq for StdLib
impl StructuralPartialEq for StdLib
Auto Trait Implementations§
impl Freeze for StdLib
impl RefUnwindSafe for StdLib
impl Send for StdLib
impl Sync for StdLib
impl Unpin for StdLib
impl UnwindSafe for StdLib
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)