pub struct TreeVerificationResult {
pub accepted_tokens: Vec<TokenId>,
pub accepted_node_indices: Vec<usize>,
pub emitted_target_token: TokenId,
pub total_tokens_produced: usize,
}Expand description
The result of verifying a speculative tree against the target model.
Fields§
§accepted_tokens: Vec<TokenId>The token IDs along the best accepted path (excluding the root).
accepted_node_indices: Vec<usize>The node indices in the tree corresponding to the accepted path.
emitted_target_token: TokenIdThe token emitted by the target model from the terminal accepted node.
total_tokens_produced: usizeTotal number of tokens produced in this cycle.
Trait Implementations§
Source§impl Clone for TreeVerificationResult
impl Clone for TreeVerificationResult
Source§impl Debug for TreeVerificationResult
impl Debug for TreeVerificationResult
Source§impl PartialEq for TreeVerificationResult
impl PartialEq for TreeVerificationResult
impl StructuralPartialEq for TreeVerificationResult
Auto Trait Implementations§
impl Forget for TreeVerificationResult
impl Freeze for TreeVerificationResult
impl Move for TreeVerificationResult
impl RefUnwindSafe for TreeVerificationResult
impl Send for TreeVerificationResult
impl Sync for TreeVerificationResult
impl Unpin for TreeVerificationResult
impl UnsafeUnpin for TreeVerificationResult
impl UnwindSafe for TreeVerificationResult
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