pub struct DecodingResult {
pub tokens: Vec<u32>,
pub text: String,
pub constraint_proof: ConstraintProof,
pub zeroed_count: usize,
}Expand description
Result of constrained decoding
Fields§
§tokens: Vec<u32>The generated tokens
text: StringDecoded text
constraint_proof: ConstraintProofProof that constraints were enforced
zeroed_count: usizeNumber of tokens that were zeroed (for metrics)
Trait Implementations§
Source§impl Clone for DecodingResult
impl Clone for DecodingResult
Source§fn clone(&self) -> DecodingResult
fn clone(&self) -> DecodingResult
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DecodingResult
impl Debug for DecodingResult
Source§impl<'de> Deserialize<'de> for DecodingResult
impl<'de> Deserialize<'de> for DecodingResult
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for DecodingResult
impl RefUnwindSafe for DecodingResult
impl Send for DecodingResult
impl Sync for DecodingResult
impl Unpin for DecodingResult
impl UnwindSafe for DecodingResult
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