pub enum RealizedDrafting<D> {
Disabled,
Embedded,
External(D),
}Expand description
Backend-owned drafting resources realized for one complete execution plan.
Variants§
Disabled
Ordinary target-only decoding.
Embedded
Draft heads embedded in the prepared target model.
External(D)
Separately prepared assistant owned by the selected backend.
Implementations§
Source§impl<D> RealizedDrafting<D>
impl<D> RealizedDrafting<D>
Sourcepub fn as_speculative_draft(&mut self) -> Option<SpeculativeDraft<'_, D>>
pub fn as_speculative_draft(&mut self) -> Option<SpeculativeDraft<'_, D>>
Borrows the request-level draft selection when speculative execution is enabled.
Sourcepub const fn is_external(&self) -> bool
pub const fn is_external(&self) -> bool
Returns whether this plan owns a separately prepared assistant.
Auto Trait Implementations§
impl<D> Freeze for RealizedDrafting<D>where
D: Freeze,
impl<D> RefUnwindSafe for RealizedDrafting<D>where
D: RefUnwindSafe,
impl<D> Send for RealizedDrafting<D>where
D: Send,
impl<D> Sync for RealizedDrafting<D>where
D: Sync,
impl<D> Unpin for RealizedDrafting<D>where
D: Unpin,
impl<D> UnsafeUnpin for RealizedDrafting<D>where
D: UnsafeUnpin,
impl<D> UnwindSafe for RealizedDrafting<D>where
D: UnwindSafe,
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