pub struct WeightMaterializerSelection { /* private fields */ }Expand description
Typed compiler selection for one weight materializer.
Artifact bytes remain inert until the process-local registry verifies them against the selected implementation, its checked-in quality contract, and the live source and execution schemas. The bytes therefore cannot act as a global precision override.
Implementations§
Source§impl WeightMaterializerSelection
impl WeightMaterializerSelection
pub fn exact(materializer_id: WeightMaterializerId) -> Self
pub fn numeric_quality_artifact( materializer_id: WeightMaterializerId, artifact_bytes: impl Into<Vec<u8>>, ) -> Result<Self, VNextError>
pub fn materializer_id(&self) -> &WeightMaterializerId
pub fn has_numeric_quality_artifact(&self) -> bool
Trait Implementations§
Source§impl Clone for WeightMaterializerSelection
impl Clone for WeightMaterializerSelection
Source§fn clone(&self) -> WeightMaterializerSelection
fn clone(&self) -> WeightMaterializerSelection
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 WeightMaterializerSelection
impl Debug for WeightMaterializerSelection
impl Eq for WeightMaterializerSelection
impl StructuralPartialEq for WeightMaterializerSelection
Auto Trait Implementations§
impl Freeze for WeightMaterializerSelection
impl RefUnwindSafe for WeightMaterializerSelection
impl Send for WeightMaterializerSelection
impl Sync for WeightMaterializerSelection
impl Unpin for WeightMaterializerSelection
impl UnsafeUnpin for WeightMaterializerSelection
impl UnwindSafe for WeightMaterializerSelection
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