pub struct FamilyNumericalProfiles { /* private fields */ }Expand description
The preference order is a versioned family declaration, not registry order.
Profiles absent from auto_preference remain available only to Require;
this lets new numerical combinations be qualified before changing defaults.
Implementations§
Source§impl FamilyNumericalProfiles
impl FamilyNumericalProfiles
pub fn new( family_id: &ModelFamilyId, version: ContractVersion, profiles: Vec<NumericalExecutionProfile>, auto_preference: Vec<NumericalProfileId>, ) -> Result<Self, VNextError>
pub fn version(&self) -> ContractVersion
pub fn profiles(&self) -> &[NumericalExecutionProfile]
pub fn auto_preference(&self) -> &[NumericalProfileId]
pub fn resolve( &self, id: &NumericalProfileId, ) -> Result<&NumericalExecutionProfile, VNextError>
pub fn candidates( &self, policy: &NumericalExecutionPolicy, kv_storage: KvStorageFormat, ) -> Result<Vec<&NumericalExecutionProfile>, VNextError>
Trait Implementations§
Source§impl Clone for FamilyNumericalProfiles
impl Clone for FamilyNumericalProfiles
Source§fn clone(&self) -> FamilyNumericalProfiles
fn clone(&self) -> FamilyNumericalProfiles
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 FamilyNumericalProfiles
impl Debug for FamilyNumericalProfiles
impl Eq for FamilyNumericalProfiles
Source§impl PartialEq for FamilyNumericalProfiles
impl PartialEq for FamilyNumericalProfiles
Source§impl Serialize for FamilyNumericalProfiles
impl Serialize for FamilyNumericalProfiles
impl StructuralPartialEq for FamilyNumericalProfiles
Auto Trait Implementations§
impl Freeze for FamilyNumericalProfiles
impl RefUnwindSafe for FamilyNumericalProfiles
impl Send for FamilyNumericalProfiles
impl Sync for FamilyNumericalProfiles
impl Unpin for FamilyNumericalProfiles
impl UnsafeUnpin for FamilyNumericalProfiles
impl UnwindSafe for FamilyNumericalProfiles
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