pub struct VNextTeacherForcingConfig { /* private fields */ }Expand description
Bounded token history used only by explicit vNext checkpoint diagnostics.
Construction and executor binding both validate this contract. The latter
is required because deserialization can bypass new and only model binding
knows the live vocabulary size.
Implementations§
Source§impl VNextTeacherForcingConfig
impl VNextTeacherForcingConfig
pub fn new(token_ids: Vec<TokenId>) -> Result<Self, String>
pub fn validate(&self) -> Result<(), String>
pub fn token_ids(&self) -> &[TokenId]
pub fn token_count(&self) -> usize
Sourcepub fn token_ids_sha256(&self) -> String
pub fn token_ids_sha256(&self) -> String
Canonical identity used by release validators: concatenated little- endian u32 token IDs, with no JSON or path-dependent representation.
Trait Implementations§
Source§impl Clone for VNextTeacherForcingConfig
impl Clone for VNextTeacherForcingConfig
Source§fn clone(&self) -> VNextTeacherForcingConfig
fn clone(&self) -> VNextTeacherForcingConfig
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 VNextTeacherForcingConfig
impl Debug for VNextTeacherForcingConfig
Source§impl<'de> Deserialize<'de> for VNextTeacherForcingConfig
impl<'de> Deserialize<'de> for VNextTeacherForcingConfig
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
impl Eq for VNextTeacherForcingConfig
impl StructuralPartialEq for VNextTeacherForcingConfig
Auto Trait Implementations§
impl Freeze for VNextTeacherForcingConfig
impl RefUnwindSafe for VNextTeacherForcingConfig
impl Send for VNextTeacherForcingConfig
impl Sync for VNextTeacherForcingConfig
impl Unpin for VNextTeacherForcingConfig
impl UnsafeUnpin for VNextTeacherForcingConfig
impl UnwindSafe for VNextTeacherForcingConfig
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