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 lua55 or lua54 or lua53 or lua52 or luau only.
pub const COROUTINE: StdLib
lua55 or lua54 or lua53 or lua52 or luau only.coroutine library
Sourcepub const UTF8: StdLib
Available on crate features lua55 or lua54 or lua53 or luau only.
pub const UTF8: StdLib
lua55 or lua54 or lua53 or luau only.utf8 library
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 UnsafeUnpin 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 more