pub struct ZIO { /* private fields */ }Expand description
Chunked byte source for the lexer.
Pulls successive byte chunks from a reader callback and hands them out one
byte at a time as i32, with EOZ (-1) signalling end of stream. A
reader is permitted to be re-polled after yielding an empty chunk: an empty
chunk reports EOZ without committing it, so a later getc
asks the reader again — that is how an interactive source distinguishes a
momentary stall from a true end.
The byte position is a single cursor into the current chunk; “remaining” is
derived as chunk.len() - cursor, not tracked as a separate counter.
TODO: ZIO/LexBuffer will move to lua_vm::zio (separate refactor).
Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for ZIO
impl !Send for ZIO
impl !Sync for ZIO
impl !UnwindSafe for ZIO
impl Freeze for ZIO
impl Unpin for ZIO
impl UnsafeUnpin for ZIO
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