pub trait AsChunk<'lua> {
fn source(&self) -> IoResult<Cow<'_, [u8]>>;
fn name(&self) -> Option<StdString> { ... }
fn env(&self, _lua: &'lua Lua) -> Result<Option<Value<'lua>>> { ... }
fn mode(&self) -> Option<ChunkMode> { ... }
}
Expand description
Trait for types loadable by Lua and convertible to a Chunk