pub enum ChunkMode {
Text,
Binary,
}Expand description
How a chunk’s bytes are interpreted. Mirrors mlua::ChunkMode. luaur-rt
always loads text source, so this exists for signature parity with
Chunk::set_mode.
Variants§
Text
Text source (the default and only supported mode here).
Binary
Precompiled bytecode (not supported by luaur-rt’s high-level loader).
Trait Implementations§
impl Copy for ChunkMode
impl Eq for ChunkMode
impl StructuralPartialEq for ChunkMode
Auto Trait Implementations§
impl Freeze for ChunkMode
impl RefUnwindSafe for ChunkMode
impl Send for ChunkMode
impl Sync for ChunkMode
impl Unpin for ChunkMode
impl UnsafeUnpin for ChunkMode
impl UnwindSafe for ChunkMode
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