pub struct LuaStdLib(/* private fields */);Available on crate feature
mlua only.Expand description
Flags describing the set of lua standard libraries to load.
Implementations§
Source§impl StdLib
impl StdLib
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 features luajit only.
pub const JIT: StdLib
luajit only.jit library
Requires feature = "luajit"
Sourcepub const FFI: StdLib
Available on crate features 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: StdLib) -> bool
Trait Implementations§
Source§impl BitAndAssign for StdLib
impl BitAndAssign for StdLib
Source§fn bitand_assign(&mut self, rhs: StdLib)
fn bitand_assign(&mut self, rhs: StdLib)
Performs the
&= operation. Read moreSource§impl BitOrAssign for StdLib
impl BitOrAssign for StdLib
Source§fn bitor_assign(&mut self, rhs: StdLib)
fn bitor_assign(&mut self, rhs: StdLib)
Performs the
|= operation. Read moreSource§impl BitXorAssign for StdLib
impl BitXorAssign for StdLib
Source§fn bitxor_assign(&mut self, rhs: StdLib)
fn bitxor_assign(&mut self, rhs: StdLib)
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§
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<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoResult<T> for T
impl<T> IntoResult<T> for T
Source§type Error = Infallible
type Error = Infallible
The error type in the returned
Result.Source§fn into_result(self) -> Result<T, <T as IntoResult<T>>::Error>
fn into_result(self) -> Result<T, <T as IntoResult<T>>::Error>
Converts the value into a
Result.