pub struct DraftProposal {
pub candidates: SmallVec<[TokenCandidate; 8]>,
}Expand description
Represents the speculative draft sequence proposed by the draft model.
Fields§
§candidates: SmallVec<[TokenCandidate; 8]>List of proposed token candidates.
Implementations§
Trait Implementations§
Source§impl Clone for DraftProposal
impl Clone for DraftProposal
Source§fn clone(&self) -> DraftProposal
fn clone(&self) -> DraftProposal
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 DraftProposal
impl Debug for DraftProposal
Source§impl Default for DraftProposal
impl Default for DraftProposal
Source§fn default() -> DraftProposal
fn default() -> DraftProposal
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for DraftProposal
impl<'de> Deserialize<'de> for DraftProposal
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<DraftProposal, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<DraftProposal, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for DraftProposal
impl PartialEq for DraftProposal
Source§impl Serialize for DraftProposal
impl Serialize for DraftProposal
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for DraftProposal
Auto Trait Implementations§
impl Forget for DraftProposal
impl Freeze for DraftProposal
impl Move for DraftProposal
impl RefUnwindSafe for DraftProposal
impl Send for DraftProposal
impl Sync for DraftProposal
impl Unpin for DraftProposal
impl UnsafeUnpin for DraftProposal
impl UnwindSafe for DraftProposal
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