Struct GeometryStateEnvelope
pub struct GeometryStateEnvelope { /* private fields */ }Description
One accepted coordinate state over an exact immutable reference simplex mesh.
Dimensions two and three share the same wire and validation. Fixed-topology states replay their graph-selected harmonic action from exact driver leaves. A remesh origin retains its source and semantic association; overlap and transfer receipts separately prove the representation change. No connectivity or independently authored mesh velocity is admitted.
Implementations§
§impl GeometryStateEnvelope
impl GeometryStateEnvelope
pub fn remesh<M>(
source: &ValidatedRemeshGeometrySource<'_, M>,
target: &ValidatedMovingSpatialContext<'_, M>,
driver_snapshot: &FieldSnapshotEnvelopeV2,
coordinates: Vec<Vec<f64>>,
) -> Result<GeometryStateEnvelope, Diagnostic>where
M: ReplayableCanonicalModelArtifact,
pub fn remesh<M>(
source: &ValidatedRemeshGeometrySource<'_, M>,
target: &ValidatedMovingSpatialContext<'_, M>,
driver_snapshot: &FieldSnapshotEnvelopeV2,
coordinates: Vec<Vec<f64>>,
) -> Result<GeometryStateEnvelope, Diagnostic>where
M: ReplayableCanonicalModelArtifact,
Construct the same-time origin of a distinct two-dimensional mesh revision.
This verifies semantic retention and target coordinate quality. Material and current-spatial overlap and transfer correctness belong to their receipts. No same-topology path or velocity is fabricated for a representation change.
§Errors
Rejects changed Model/time, identical meshes, incomplete association, wrong driver lineage or unsupported dimensions.
pub fn validate_against_remesh<M>(
&self,
source: &ValidatedRemeshGeometrySource<'_, M>,
target: &ValidatedMovingSpatialContext<'_, M>,
driver_snapshot: &FieldSnapshotEnvelopeV2,
) -> Result<(), Diagnostic>where
M: ReplayableCanonicalModelArtifact,
pub fn validate_against_remesh<M>(
&self,
source: &ValidatedRemeshGeometrySource<'_, M>,
target: &ValidatedMovingSpatialContext<'_, M>,
driver_snapshot: &FieldSnapshotEnvelopeV2,
) -> Result<(), Diagnostic>where
M: ReplayableCanonicalModelArtifact,
Replay a remesh origin from its exact dependencies.
§Errors
Rejects changed source, target or derived geometry evidence.
pub fn remesh_source_spatial_state(&self) -> Option<ArtifactDigest>
pub fn remesh_source_spatial_state(&self) -> Option<ArtifactDigest>
Exact source state of a remesh origin; absent for fixed-topology origins.
pub fn remesh_source_geometry_state(&self) -> Option<ArtifactDigest>
pub fn remesh_source_geometry_state(&self) -> Option<ArtifactDigest>
Exact source geometry at a remesh origin.
pub fn remesh_semantic_association(&self) -> Option<ArtifactDigest>
pub fn remesh_semantic_association(&self) -> Option<ArtifactDigest>
Semantic association at a remesh origin.
§impl GeometryStateEnvelope
impl GeometryStateEnvelope
pub fn new<'a, M>(
context: &ValidatedMovingSpatialContext<'_, M>,
step: u64,
time_s: f64,
predecessor: Option<&GeometryStateEnvelope>,
driver_snapshot: &FieldSnapshotEnvelopeV2,
driver_blocks: impl IntoIterator<Item = &'a DiscreteFieldEnvelopeV1>,
coordinates: Vec<Vec<f64>>,
) -> Result<GeometryStateEnvelope, Diagnostic>where
M: ReplayableCanonicalModelArtifact,
pub fn new<'a, M>(
context: &ValidatedMovingSpatialContext<'_, M>,
step: u64,
time_s: f64,
predecessor: Option<&GeometryStateEnvelope>,
driver_snapshot: &FieldSnapshotEnvelopeV2,
driver_blocks: impl IntoIterator<Item = &'a DiscreteFieldEnvelopeV1>,
coordinates: Vec<Vec<f64>>,
) -> Result<GeometryStateEnvelope, Diagnostic>where
M: ReplayableCanonicalModelArtifact,
Capture an initial state or immediate positive-duration continuation.
§Errors
Returns EQ0901 for stale dependencies, invalid driver leaves or coordinates, non-adjacent step/time, or failed endpoint/path quality replay.
pub fn from_json(
bytes: &[u8],
limits: MeshDecoderLimits,
) -> Result<GeometryStateEnvelope, Diagnostic>
pub fn from_json( bytes: &[u8], limits: MeshDecoderLimits, ) -> Result<GeometryStateEnvelope, Diagnostic>
Decode the sole current wire; dependency replay remains required.
§Errors
Rejects retired schemas, unknown fields, malformed origins or exceeded budgets.
pub fn canonical_json(&self) -> Result<Vec<u8>, Diagnostic>
pub fn canonical_json(&self) -> Result<Vec<u8>, Diagnostic>
pub fn digest(&self) -> Result<ArtifactDigest, Diagnostic>
pub fn digest(&self) -> Result<ArtifactDigest, Diagnostic>
pub const fn spatial_dimension(&self) -> usize
pub const fn spatial_dimension(&self) -> usize
Intrinsic reference dimension.
pub const fn origin(&self) -> GeometryStateOriginKind
pub const fn origin(&self) -> GeometryStateOriginKind
Closed origin of these coordinates.
pub fn model_artifact(&self) -> ArtifactDigest
pub fn model_artifact(&self) -> ArtifactDigest
Reference Model artifact.
pub const fn semantic_revision(&self) -> u64
pub const fn semantic_revision(&self) -> u64
Reference Model semantic revision.
pub fn reference_geometry_artifact(&self) -> ArtifactDigest
pub fn reference_geometry_artifact(&self) -> ArtifactDigest
Reference Geometry Identity artifact.
pub fn reference_correspondence_artifact(&self) -> ArtifactDigest
pub fn reference_correspondence_artifact(&self) -> ArtifactDigest
Reference geometry-to-mesh correspondence artifact.
pub fn reference_mesh_artifact(&self) -> ArtifactDigest
pub fn reference_mesh_artifact(&self) -> ArtifactDigest
Immutable reference simplex mesh artifact.
pub fn realization_artifact(&self) -> ArtifactDigest
pub fn realization_artifact(&self) -> ArtifactDigest
Fixed-topology ALE Realization artifact.
pub fn predecessor(&self) -> Option<ArtifactDigest>
pub fn predecessor(&self) -> Option<ArtifactDigest>
Same-topology predecessor; absent at an initial or remesh origin.
pub fn driver_snapshot(&self) -> ArtifactDigest
pub fn driver_snapshot(&self) -> ArtifactDigest
Exact Field snapshot selected as the geometry driver.
pub fn current_coordinates_m(&self) -> &[Vec<f64>]
pub fn current_coordinates_m(&self) -> &[Vec<f64>]
Absolute coherent-SI coordinates in immutable reference-vertex order.
pub fn mesh_velocity_m_per_s(&self) -> Option<&[Vec<f64>]>
pub fn mesh_velocity_m_per_s(&self) -> Option<&[Vec<f64>]>
Derived velocity; absent at initial and zero-duration remesh origins.
pub const fn reference_minimum_mean_ratio(&self) -> f64
pub const fn reference_minimum_mean_ratio(&self) -> f64
Replayed minimum mean ratio of the immutable reference mesh.
pub const fn reference_minimum_signed_measure_scale(&self) -> f64
pub const fn reference_minimum_signed_measure_scale(&self) -> f64
Replayed minimum signed measure scale of the immutable reference mesh.
pub const fn current_minimum_mean_ratio(&self) -> f64
pub const fn current_minimum_mean_ratio(&self) -> f64
Replayed minimum mean ratio of the accepted current coordinates.
pub const fn current_minimum_signed_measure_scale(&self) -> f64
pub const fn current_minimum_signed_measure_scale(&self) -> f64
Replayed minimum signed measure scale of the accepted current coordinates.
pub const fn minimum_path_signed_measure_scale(&self) -> Option<f64>
pub const fn minimum_path_signed_measure_scale(&self) -> Option<f64>
Replayed path quality; a zero-duration remesh has no same-topology path.
pub fn validate_against<'a, M>(
&self,
context: &ValidatedMovingSpatialContext<'_, M>,
predecessor: Option<&GeometryStateEnvelope>,
driver_snapshot: &FieldSnapshotEnvelopeV2,
driver_blocks: impl IntoIterator<Item = &'a DiscreteFieldEnvelopeV1>,
) -> Result<(), Diagnostic>where
M: ReplayableCanonicalModelArtifact,
pub fn validate_against<'a, M>(
&self,
context: &ValidatedMovingSpatialContext<'_, M>,
predecessor: Option<&GeometryStateEnvelope>,
driver_snapshot: &FieldSnapshotEnvelopeV2,
driver_blocks: impl IntoIterator<Item = &'a DiscreteFieldEnvelopeV1>,
) -> Result<(), Diagnostic>where
M: ReplayableCanonicalModelArtifact,
Replay an initial or continuous state from its exact dependencies.
§Errors
Rejects dependency, driver, predecessor or derived-evidence drift.
Trait Implementations§
§impl Clone for GeometryStateEnvelope
impl Clone for GeometryStateEnvelope
§impl Debug for GeometryStateEnvelope
impl Debug for GeometryStateEnvelope
§impl PartialEq for GeometryStateEnvelope
impl PartialEq for GeometryStateEnvelope
§fn eq(&self, other: &GeometryStateEnvelope) -> bool
fn eq(&self, other: &GeometryStateEnvelope) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for GeometryStateEnvelope
Auto Trait Implementations§
impl Freeze for GeometryStateEnvelope
impl RefUnwindSafe for GeometryStateEnvelope
impl Send for GeometryStateEnvelope
impl Sync for GeometryStateEnvelope
impl Unpin for GeometryStateEnvelope
impl UnsafeUnpin for GeometryStateEnvelope
impl UnwindSafe for GeometryStateEnvelope
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.