pub struct ResolvedEngineProfileV2 { /* private fields */ }Expand description
Self-contained immutable V2 engine profile.
Implementations§
Source§impl ResolvedEngineProfileV2
impl ResolvedEngineProfileV2
Sourcepub fn new(
selection: EngineProfileSelectionV1,
fact_bundle_urn: impl Into<String>,
facts: Vec<EngineProfileFactV2>,
setting_descriptors: Vec<EngineSettingDescriptorV2>,
primary_sources: Vec<EnginePrimarySourceV2>,
) -> Result<Self, EngineContractError>
pub fn new( selection: EngineProfileSelectionV1, fact_bundle_urn: impl Into<String>, facts: Vec<EngineProfileFactV2>, setting_descriptors: Vec<EngineSettingDescriptorV2>, primary_sources: Vec<EnginePrimarySourceV2>, ) -> Result<Self, EngineContractError>
Construct and canonically order one V2 profile.
Sourcepub const fn contract_id(&self) -> &'static str
pub const fn contract_id(&self) -> &'static str
Immutable contract id.
Sourcepub const fn selection(&self) -> &EngineProfileSelectionV1
pub const fn selection(&self) -> &EngineProfileSelectionV1
Exact selected tuple.
Sourcepub fn fact_bundle_urn(&self) -> &str
pub fn fact_bundle_urn(&self) -> &str
Fact bundle URN.
Sourcepub const fn facts_identity(&self) -> &InputIdentity
pub const fn facts_identity(&self) -> &InputIdentity
Canonical profile identity.
Sourcepub fn facts(&self) -> &[EngineProfileFactV2]
pub fn facts(&self) -> &[EngineProfileFactV2]
Canonically ordered complete fact inventory.
Sourcepub fn setting_descriptors(&self) -> &[EngineSettingDescriptorV2]
pub fn setting_descriptors(&self) -> &[EngineSettingDescriptorV2]
Canonically ordered setting descriptors.
Sourcepub fn primary_sources(&self) -> &[EnginePrimarySourceV2]
pub fn primary_sources(&self) -> &[EnginePrimarySourceV2]
Canonically ordered primary sources.
Sourcepub fn fact(&self, id: EngineFactIdV2) -> Option<&EngineProfileFactV2>
pub fn fact(&self, id: EngineFactIdV2) -> Option<&EngineProfileFactV2>
Look up one fact.
Sourcepub fn setting_descriptor(
&self,
id: EngineSettingIdV2,
) -> Option<&EngineSettingDescriptorV2>
pub fn setting_descriptor( &self, id: EngineSettingIdV2, ) -> Option<&EngineSettingDescriptorV2>
Look up one descriptor.
Sourcepub fn source(&self, id: &str) -> Option<&EnginePrimarySourceV2>
pub fn source(&self, id: &str) -> Option<&EnginePrimarySourceV2>
Look up one primary source.
Sourcepub fn accepts_format(&self, format: SourceFormatV1) -> bool
pub fn accepts_format(&self, format: SourceFormatV1) -> bool
Whether the exact accepted-inputs fact admits a format.
Sourcepub fn validate(&self) -> Result<(), EngineContractError>
pub fn validate(&self) -> Result<(), EngineContractError>
Revalidate canonical form and identity.
Trait Implementations§
Source§impl Clone for ResolvedEngineProfileV2
impl Clone for ResolvedEngineProfileV2
Source§fn clone(&self) -> ResolvedEngineProfileV2
fn clone(&self) -> ResolvedEngineProfileV2
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 ResolvedEngineProfileV2
impl Debug for ResolvedEngineProfileV2
Source§impl<'de> Deserialize<'de> for ResolvedEngineProfileV2
impl<'de> Deserialize<'de> for ResolvedEngineProfileV2
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 ResolvedEngineProfileV2
Source§impl PartialEq for ResolvedEngineProfileV2
impl PartialEq for ResolvedEngineProfileV2
Source§impl Serialize for ResolvedEngineProfileV2
impl Serialize for ResolvedEngineProfileV2
impl StructuralPartialEq for ResolvedEngineProfileV2
Auto Trait Implementations§
impl Freeze for ResolvedEngineProfileV2
impl RefUnwindSafe for ResolvedEngineProfileV2
impl Send for ResolvedEngineProfileV2
impl Sync for ResolvedEngineProfileV2
impl Unpin for ResolvedEngineProfileV2
impl UnsafeUnpin for ResolvedEngineProfileV2
impl UnwindSafe for ResolvedEngineProfileV2
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