pub enum MtmdLazyChunk {
Bitmap(MtmdBitmap),
Text(String),
End,
}Expand description
What a lazy-bitmap callback yields for one chunk index.
Variants§
Bitmap(MtmdBitmap)
An image or audio bitmap. Ownership passes to llama.cpp.
Text(String)
A run of text to splice in at this position.
End
No more chunks; the placeholder removes itself from the prompt.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MtmdLazyChunk
impl RefUnwindSafe for MtmdLazyChunk
impl Send for MtmdLazyChunk
impl Sync for MtmdLazyChunk
impl Unpin for MtmdLazyChunk
impl UnsafeUnpin for MtmdLazyChunk
impl UnwindSafe for MtmdLazyChunk
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