Struct RealizationEnvelope
pub struct RealizationEnvelope { /* private fields */ }Description
Content-addressed numerical intent over the sole accepted portable graph.
Model/revision/source and every numerical policy belong to the graph. The envelope adds only exact external artifact references. Runtime device ordinals and provider observations belong to execution binding and Run provenance.
Implementations§
§impl RealizationEnvelope
impl RealizationEnvelope
pub fn new(
model: &impl CanonicalModelArtifact,
graph: PortableRealizationGraph,
layout_artifacts: LayoutArtifacts,
) -> Result<RealizationEnvelope, Diagnostic>
pub fn new( model: &impl CanonicalModelArtifact, graph: PortableRealizationGraph, layout_artifacts: LayoutArtifacts, ) -> Result<RealizationEnvelope, Diagnostic>
Bind one accepted graph to its exact Model and layout inputs.
§Errors
Rejects Model identity/revision drift or contradictory layout references.
pub fn from_json(
bytes: &[u8],
limits: RealizationDecoderLimits,
) -> Result<RealizationEnvelope, Diagnostic>
pub fn from_json( bytes: &[u8], limits: RealizationDecoderLimits, ) -> Result<RealizationEnvelope, Diagnostic>
Decode only the current closed wire, revalidating its canonical graph.
§Errors
Rejects retired schemas, malformed/unknown fields, noncanonical graph bytes, invalid policies, contradictory layout, or exceeded caller budgets.
pub fn canonical_json(&self) -> Result<Vec<u8>, Diagnostic>
pub fn canonical_json(&self) -> Result<Vec<u8>, Diagnostic>
Deterministic canonical JSON, embedding the graph’s own exact bytes.
§Errors
Returns EQ0901 if graph encoding or serialization unexpectedly fails.
pub fn digest(&self) -> Result<ArtifactDigest, Diagnostic>
pub fn digest(&self) -> Result<ArtifactDigest, Diagnostic>
Schema-domain-separated identity of the complete current envelope.
§Errors
Preserves canonical encoding diagnostics.
pub const fn graph(&self) -> &PortableRealizationGraph
pub const fn graph(&self) -> &PortableRealizationGraph
Sole numerical graph, including lineage and every selected policy.
pub fn model_artifact(&self) -> ArtifactDigest
pub fn model_artifact(&self) -> ArtifactDigest
Exact referenced Model artifact.
pub fn model(&self) -> OntologyId<Model>
pub fn model(&self) -> OntologyId<Model>
Model identity retained by graph lineage.
pub fn semantic_revision(&self) -> SemanticRevision
pub fn semantic_revision(&self) -> SemanticRevision
Semantic revision retained by graph lineage.
pub fn source(&self) -> ResolutionSource
pub fn source(&self) -> ResolutionSource
Default-policy or explicit-revision origin retained by graph lineage.
pub fn layout_artifacts(&self) -> LayoutArtifacts
pub fn layout_artifacts(&self) -> LayoutArtifacts
Exact referenced layout inputs.
pub fn vector_layout(&self) -> VectorLayoutKind
pub fn vector_layout(&self) -> VectorLayoutKind
Sole algebraic partition requirement.
pub fn placement(&self) -> PlacementRequirementNode
pub fn placement(&self) -> PlacementRequirementNode
Portable compute requirement; contains no deployment-local device ordinal.
pub fn solver_plan(&self) -> SolverPlan
pub fn solver_plan(&self) -> SolverPlan
Linear controls, including the inner linear solve of a nonlinear root.
pub fn validate_model_artifact(
&self,
model: &impl CanonicalModelArtifact,
) -> Result<(), Diagnostic>
pub fn validate_model_artifact( &self, model: &impl CanonicalModelArtifact, ) -> Result<(), Diagnostic>
Verify the exact Model digest, ontology identity and semantic revision.
§Errors
Rejects drift in any of the three identity components.
pub fn mesh_artifact(
&self,
domain: Id<Domain>,
) -> Result<Option<ArtifactDigest>, Diagnostic>
pub fn mesh_artifact( &self, domain: Id<Domain>, ) -> Result<Option<ArtifactDigest>, Diagnostic>
Imported or supplied mesh selected by one exact graph Domain.
§Errors
Rejects a Domain absent from this Realization.
pub fn validate_mesh_artifact(
&self,
model: &impl ReplayableCanonicalModelArtifact,
mesh: &SimplicialMeshEnvelopeV1,
) -> Result<(), Diagnostic>
pub fn validate_mesh_artifact( &self, model: &impl ReplayableCanonicalModelArtifact, mesh: &SimplicialMeshEnvelopeV1, ) -> Result<(), Diagnostic>
Authenticate one supplied simplex mesh against its graph Domains and Model.
Dimension comes from accepted semantic spatial support, never a repeated envelope setting. ALE quality gates retain their exact mesh agreement.
§Errors
Rejects Model drift, absent mesh references, dimension drift, or quality drift.
Trait Implementations§
§impl CanonicalRealizationArtifact for RealizationEnvelope
impl CanonicalRealizationArtifact for RealizationEnvelope
§fn artifact_reference(&self) -> Result<RealizationArtifactReference, Diagnostic>
fn artifact_reference(&self) -> Result<RealizationArtifactReference, Diagnostic>
§impl Clone for RealizationEnvelope
impl Clone for RealizationEnvelope
§impl Debug for RealizationEnvelope
impl Debug for RealizationEnvelope
§impl PartialEq for RealizationEnvelope
impl PartialEq for RealizationEnvelope
§fn eq(&self, other: &RealizationEnvelope) -> bool
fn eq(&self, other: &RealizationEnvelope) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for RealizationEnvelope
Auto Trait Implementations§
impl Freeze for RealizationEnvelope
impl RefUnwindSafe for RealizationEnvelope
impl Send for RealizationEnvelope
impl Sync for RealizationEnvelope
impl Unpin for RealizationEnvelope
impl UnsafeUnpin for RealizationEnvelope
impl UnwindSafe for RealizationEnvelope
Blanket Implementations§
Source§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<Src, Scheme> ApproxFrom<Src, Scheme> for Srcwhere
Scheme: ApproxScheme,
impl<Src, Scheme> ApproxFrom<Src, Scheme> for Srcwhere
Scheme: ApproxScheme,
§fn approx_from(src: Src) -> Result<Src, <Src as ApproxFrom<Src, Scheme>>::Err>
fn approx_from(src: Src) -> Result<Src, <Src as ApproxFrom<Src, Scheme>>::Err>
§impl<Dst, Src, Scheme> ApproxInto<Dst, Scheme> for Srcwhere
Dst: ApproxFrom<Src, Scheme>,
Scheme: ApproxScheme,
impl<Dst, Src, Scheme> ApproxInto<Dst, Scheme> for Srcwhere
Dst: ApproxFrom<Src, Scheme>,
Scheme: ApproxScheme,
§type Err = <Dst as ApproxFrom<Src, Scheme>>::Err
type Err = <Dst as ApproxFrom<Src, Scheme>>::Err
§fn approx_into(self) -> Result<Dst, <Src as ApproxInto<Dst, Scheme>>::Err>
fn approx_into(self) -> Result<Dst, <Src as ApproxInto<Dst, Scheme>>::Err>
Source§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T, Dst> ConvAsUtil<Dst> for T
impl<T, Dst> ConvAsUtil<Dst> for T
§fn approx(self) -> Result<Dst, Self::Err>where
Self: Sized + ApproxInto<Dst>,
fn approx(self) -> Result<Dst, Self::Err>where
Self: Sized + ApproxInto<Dst>,
§impl<T> ConvUtil for T
impl<T> ConvUtil for T
§fn approx_as<Dst>(self) -> Result<Dst, Self::Err>where
Self: Sized + ApproxInto<Dst>,
fn approx_as<Dst>(self) -> Result<Dst, Self::Err>where
Self: Sized + ApproxInto<Dst>,
§fn approx_as_by<Dst, Scheme>(self) -> Result<Dst, Self::Err>where
Self: Sized + ApproxInto<Dst, Scheme>,
Scheme: ApproxScheme,
fn approx_as_by<Dst, Scheme>(self) -> Result<Dst, Self::Err>where
Self: Sized + ApproxInto<Dst, Scheme>,
Scheme: ApproxScheme,
§fn into_as<Dst>(self) -> Dstwhere
Self: Sized + Into<Dst>,
fn into_as<Dst>(self) -> Dstwhere
Self: Sized + Into<Dst>,
§fn try_as<Dst>(self) -> Result<Dst, Self::Err>where
Self: Sized + TryInto<Dst>,
fn try_as<Dst>(self) -> Result<Dst, Self::Err>where
Self: Sized + TryInto<Dst>,
§impl<T> DistributionExt for Twhere
T: ?Sized,
impl<T> DistributionExt for Twhere
T: ?Sized,
fn rand<T>(&self, rng: &mut (impl Rng + ?Sized)) -> Twhere
Self: Distribution<T>,
Source§impl<T> From<T> for T
impl<T> From<T> for T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T, U> Into<U> for Twhere
U: From<T>,
impl<T, U> Into<U> for Twhere
U: From<T>,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>where
F: FnOnce(&Self) -> bool,
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>where
F: FnOnce(&Self) -> bool,
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> Same for T
impl<T> Same for T
§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self is actually part of its subset T (and can be converted to it).§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.