pub trait AsChunk<'lua> {
    fn source(&self) -> &[u8]Notable traits for &'_ [u8]impl<'_> Read for &'_ [u8]impl<'_> Write for &'_ mut [u8];

    fn name(&self) -> Option<CString> { ... }
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

Required methods

Returns chunk data (can be text or binary)

Provided methods

Returns optional chunk name

Returns optional chunk environment

Returns optional chunk mode (text or binary)

Implementors