pub struct SpeculativeStateCacheIdentityIngredients { /* private fields */ }Expand description
Stable semantic inputs to target, prediction, assistant, and cache identity.
Implementations§
Source§impl SpeculativeStateCacheIdentityIngredients
impl SpeculativeStateCacheIdentityIngredients
Sourcepub fn new(
target: SpeculativeIdentity,
strategy: SpeculativeIdentity,
assistant: Option<SpeculativeIdentity>,
tokenizer: Option<[u8; 32]>,
artifact: SpeculativeIdentity,
format: SpeculativeIdentity,
model_topology: SpeculativeIdentity,
rank: usize,
processor: SpeculativeIdentity,
state_components: Vec<SpeculativeIdentity>,
) -> Result<Self, SpeculativeContractError>
pub fn new( target: SpeculativeIdentity, strategy: SpeculativeIdentity, assistant: Option<SpeculativeIdentity>, tokenizer: Option<[u8; 32]>, artifact: SpeculativeIdentity, format: SpeculativeIdentity, model_topology: SpeculativeIdentity, rank: usize, processor: SpeculativeIdentity, state_components: Vec<SpeculativeIdentity>, ) -> Result<Self, SpeculativeContractError>
Creates exact identity ingredients with unique, nonempty state components.
Sourcepub const fn target(&self) -> &SpeculativeIdentity
pub const fn target(&self) -> &SpeculativeIdentity
Returns the ordinary target identity.
Sourcepub const fn strategy(&self) -> &SpeculativeIdentity
pub const fn strategy(&self) -> &SpeculativeIdentity
Returns the embedded or external strategy identity.
Sourcepub const fn assistant(&self) -> Option<&SpeculativeIdentity>
pub const fn assistant(&self) -> Option<&SpeculativeIdentity>
Returns the assistant identity for separate drafting.
Sourcepub const fn tokenizer(&self) -> Option<[u8; 32]>
pub const fn tokenizer(&self) -> Option<[u8; 32]>
Returns the tokenizer compatibility identity when required.
Sourcepub const fn artifact(&self) -> &SpeculativeIdentity
pub const fn artifact(&self) -> &SpeculativeIdentity
Returns the admitted artifact identity.
Sourcepub const fn format(&self) -> &SpeculativeIdentity
pub const fn format(&self) -> &SpeculativeIdentity
Returns the admitted checkpoint-format identity.
Sourcepub const fn model_topology(&self) -> &SpeculativeIdentity
pub const fn model_topology(&self) -> &SpeculativeIdentity
Returns the ordinary target’s model topology identity.
Sourcepub const fn processor(&self) -> &SpeculativeIdentity
pub const fn processor(&self) -> &SpeculativeIdentity
Returns the selected input-processor contract identity.
Sourcepub fn state_components(&self) -> &[SpeculativeIdentity]
pub fn state_components(&self) -> &[SpeculativeIdentity]
Returns architecture state components in persistence order.
Trait Implementations§
Source§impl Clone for SpeculativeStateCacheIdentityIngredients
impl Clone for SpeculativeStateCacheIdentityIngredients
Source§fn clone(&self) -> SpeculativeStateCacheIdentityIngredients
fn clone(&self) -> SpeculativeStateCacheIdentityIngredients
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 moreimpl Eq for SpeculativeStateCacheIdentityIngredients
impl StructuralPartialEq for SpeculativeStateCacheIdentityIngredients
Auto Trait Implementations§
impl Freeze for SpeculativeStateCacheIdentityIngredients
impl RefUnwindSafe for SpeculativeStateCacheIdentityIngredients
impl Send for SpeculativeStateCacheIdentityIngredients
impl Sync for SpeculativeStateCacheIdentityIngredients
impl Unpin for SpeculativeStateCacheIdentityIngredients
impl UnsafeUnpin for SpeculativeStateCacheIdentityIngredients
impl UnwindSafe for SpeculativeStateCacheIdentityIngredients
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