pub struct StaticResolutionV2 { /* private fields */ }Expand description
Validated revision-2 profile and fully materialized document settings.
Implementations§
Source§impl StaticResolutionV2
impl StaticResolutionV2
Sourcepub const fn profile(&self) -> &'static EngineProfileV2
pub const fn profile(&self) -> &'static EngineProfileV2
Exact immutable selected profile.
Sourcepub const fn document_settings(
&self,
) -> &BTreeMap<SettingIdV2, ResolvedSettingV2>
pub const fn document_settings( &self, ) -> &BTreeMap<SettingIdV2, ResolvedSettingV2>
Fully materialized document settings with explicit/default origins.
Sourcepub const fn clip_overlays(
&self,
) -> &BTreeMap<String, BTreeMap<SettingIdV2, SettingValueV2>>
pub const fn clip_overlays( &self, ) -> &BTreeMap<String, BTreeMap<SettingIdV2, SettingValueV2>>
Validated selector-keyed clip setting overlays.
Sourcepub fn resolve_input(
&self,
source_format: SourceFormatV1,
) -> Result<ResolvedProfileSettingsV2, ResolutionErrorV2>
pub fn resolve_input( &self, source_format: SourceFormatV1, ) -> Result<ResolvedProfileSettingsV2, ResolutionErrorV2>
Validate the authoritative source format against the exact profile.
§Errors
Returns ResolutionErrorV2::UnacceptedInputFormat for any container
outside the selected profile’s exact input boundary.
Sourcepub fn resolve_input_with_clips(
&self,
source_format: SourceFormatV1,
clip_names: &[String],
) -> Result<ResolvedProfileSettingsV2, ResolutionErrorV2>
pub fn resolve_input_with_clips( &self, source_format: SourceFormatV1, clip_names: &[String], ) -> Result<ResolvedProfileSettingsV2, ResolutionErrorV2>
Resolve the authoritative input format into bounded clip settings.
Selector overlays use the same lexical-glob then exact-name precedence
as the historical V1 resolver. Duplicate clip names remain distinct
rows by source ordinal. At most 4,096 source-order rows are materialized;
a larger exact input produces partial coverage with N+1 work evidence,
and no tail name or setting is cloned, resolved, or canonicalized.
Retained rows are returned in canonical (clip_name, source_ordinal)
order.
Sourcepub fn resolve_input_with_clips_iter<'a>(
&self,
source_format: SourceFormatV1,
clip_names: impl ExactSizeIterator<Item = &'a str>,
) -> Result<ResolvedProfileSettingsV2, ResolutionErrorV2>
pub fn resolve_input_with_clips_iter<'a>( &self, source_format: SourceFormatV1, clip_names: impl ExactSizeIterator<Item = &'a str>, ) -> Result<ResolvedProfileSettingsV2, ResolutionErrorV2>
Resolve an exact-size clip-name iterator without cloning its tail.
This is the allocation-safe entry point for loaded documents. The iterator length supplies complete versus N+1 coverage, and only the bounded retained prefix is visited.
Trait Implementations§
Source§impl Clone for StaticResolutionV2
impl Clone for StaticResolutionV2
Source§fn clone(&self) -> StaticResolutionV2
fn clone(&self) -> StaticResolutionV2
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more